A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
Arduino in Action
this week in the
General Computing
forum!
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
JavaRanch
»
Java Forums
»
Java
»
Java in General
Author
Question about Vector
Dave Robbins
Ranch Hand
Joined: Sep 16, 2003
Posts: 131
posted
Nov 14, 2005 08:07:00
0
Hello All;
I've just started getting this warning
/myFile.java:50: warning: [unchecked] unchecked call to addElement(E) as a member of the raw type
java.util.Vector
tmp.addElement("foo");
when I compile this code
java.util.Vector
tmp = new
java.util.Vector
();
tmp.addElement("foo");
if I'm not mistaken it started happening when I switched to the 1.5 VM
I'm using Netbeans 4.1 as a development environment
anybody know what that means?
Thanks
Dave
Jeff Albertson
Ranch Hand
Joined: Sep 16, 2005
Posts: 1780
posted
Nov 14, 2005 08:17:00
0
It's refering to the new generics feature of 1.5.
Here is a tutorial:
http://java.sun.com/j2se/1.5/pdf/generics-tutorial.pdf
There is no emoticon for what I am feeling!
Dave Robbins
Ranch Hand
Joined: Sep 16, 2003
Posts: 131
posted
Nov 14, 2005 09:11:00
0
Jeff,
Thanks
Dave
I agree. Here's the link:
http://aspose.com/file-tools
subject: Question about Vector
Similar Threads
Creating a vector
What does it mean?
Why is this an unchecked cast?
add element to vector
Vector conversion problem
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter