Re: Unchecked compiler warning
- From: "MikeB" <MPBrede@xxxxxxxxx>
- Date: 25 Feb 2007 07:52:21 -0800
On Feb 24, 9:50 pm, Lew <l...@xxxxxxxxxxxxxxxxxxxx> wrote:
Lew wrote:
John T wrote:protected Vector<Canoe> canoes = new Vector<Canoe>();
Lew wrote:So are you assuming that there is a class called Canoe somewhere in
the OP's class structure?
John T wrote:Sure. Aren't you?
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
Thanks for the correction. That has to do with the new generics in
Java 1.5, right?
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.
.
- Follow-Ups:
- Re: Unchecked compiler warning
- From: Lew
- Re: Unchecked compiler warning
- References:
- Unchecked compiler warning
- From: MikeB
- Re: Unchecked compiler warning
- From: John T
- Re: Unchecked compiler warning
- From: Lew
- Re: Unchecked compiler warning
- From: John T
- Re: Unchecked compiler warning
- From: Lew
- Re: Unchecked compiler warning
- From: John T
- Re: Unchecked compiler warning
- From: Lew
- Unchecked compiler warning
- Prev by Date: Re: Java comm API examples needed
- Next by Date: Re: Unchecked compiler warning
- Previous by thread: Re: Unchecked compiler warning
- Next by thread: Re: Unchecked compiler warning
- Index(es):