more eclipse fun (original) (raw)

i'm getting this 'warning' from eclipse 3.1m2 (integration build):
Type safety: The method add(Object) belongs to the raw type Vector. References
to generic type Vector should be parameterized

// here is the declaration
Vector paddleMoveEventsCurrent = new Vector(10);

// here is the usage
synchronized(paddleMoveEventsCurrent) {
paddleMoveEventsCurrent.add(move);
}

interesting.
something new.

its this:
Vector

paddleMoveEventsCurrent = new Vector(10);

its telling me that hey, that collection should have a generic type associated with it..

nifty..

wonder if it was also telling me of a different way to do it.

I'm following this tutorial on the netbeans website for a simpleEE7App. I followed the instructions precisely but got an exception need help. :/…

anyone here?

It seems that you can override a concrete method and make it abstract. I actually came across some code that did this, so I had to check how it…