Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question about Vector

 
Dave Robbins
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1780
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Dave Robbins
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jeff,

Thanks

Dave
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic