Re: Unchecked compiler warning



Lew wrote:
protected Vector<Canoe> canoes = new Vector<Canoe>();

John T wrote:

So are you assuming that there is a class called Canoe somewhere in the OP's class structure?

Lew wrote:
Sure. Aren't you?

John T wrote:
I didn't see one so I thought *maybe I'm just stupid* that the Canoe class wasn't written. That was the first thing I noticed... and it failed for me in Eclipse but the error message I got wasn't the same as that of the OP.

The OP clearly had not posted an SSCCE. His use of Canoe in his example was clearly for pedagogical purposes. Ergo, since I didn't see the definition of Canoe, I assumed it.

I have a maths degree. "Assume a spherical teacup. ... "

- Lew
.



Relevant Pages

  • Re: Unchecked compiler warning
    ... the OP's class structure? ... failed for me in Eclipse but the error message I got wasn't the same as ... Canoe, I assumed it. ...
    (comp.lang.java.help)
  • Strange Java XML Tomcat Problem
    ... I created an RSS news feed reader that loads xml from a URL to a pre-formed ... class structure. ... would it work in Eclipse but not Tomcat installed on the same machine? ...
    (comp.lang.java.programmer)