Re: Unchecked compiler warning



Lew wrote:
MikeB wrote:

I'm also sorry I didn't post the Canoe class. I wasn't thinking very
clearly and thought my example would compile to show the error. I was
also trying to post only a little portion of the code so that the
error would be easy to find.


Totally unnecessary to apologize in that you provided enough information in your question. The whole diversion into the Canoe class was a red herring, and had nothing whatsoever useful to contribute to your question.

Normally, yes, one should provide an SSCCE. When one does so, one often finds their problem as they test the example before posting. However, non-self-contained examnples can serve the pedagogical purpose, as they did in your particular question. Sure, I could have substituted "String" for "Canoe" if I really felt the need to compile your sample, but it was so clearly not intended to be compilable as such that there was no reason to bother myself or you about it.

- Lew
Well that was an interesting way to tell me to shut my mouth. Note to self: Keep quiet.
.



Relevant Pages

  • Re: Unchecked compiler warning
    ... MikeB wrote: ... also trying to post only a little portion of the code so that the ... The whole diversion into the Canoe class was a red herring, and had nothing whatsoever useful to contribute to your question. ... Sure, I could have substituted "String" for "Canoe" if I really felt the need to compile your sample, but it was so clearly not intended to be compilable as such that there was no reason to bother myself or you about it. ...
    (comp.lang.java.help)
  • Re: Code assistance
    ... the two lines and says Compile error: ... It should also hightlight the portion of the line that the ... As far as I can see, there was no syntax error beyond the ...
    (microsoft.public.access.modulesdaovba)
  • Re: Ada compiler
    ... > can't compile that portion of DTraq of course, but the output of the 3.15p ... then you could compile your own ASIS: ...
    (comp.lang.ada)
  • Re: XFree86 gone from Fedora Core? WHY!?
    ... William M. Quarles said: ... You can compile a very small portion of code that ... William Hooper ...
    (Fedora)