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: speeding up javac
    ... Lew wrote: ... one compile is a mistake; ... rebuild code in a minute or so on a much weaker workstation than the ... The files should be split up in subprojects. ...
    (comp.lang.java.programmer)
  • Re: Static import
    ... Lew wrote: ... does compile when action is a package. ... This syntax hints ...
    (comp.lang.java.programmer)
  • Re: XFree86 gone from Fedora Core? WHY!?
    ... William M. Quarles said: ... You can compile a very small portion of code that ... William Hooper ...
    (Fedora)
  • 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)