Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

... uses unchecked or unsafe operations ??

843810Jul 19 2005 — edited Jul 22 2005
Hello,
I am using a Vector to store data of type int and keep getting these warnings at runtime ..

Note: C:\Java\prog1.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.


Recompiling as specified above yields:
warning: [unchecked] unchecked call to add(int,E) as a member of the raw type java.util.Vector
this.add(index,item);

Although this doesn't keep my prog from functioning corectly, I'd like to correct the issue. Any ideas?

Thanks,
rgarner04
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 19 2005
Added on Jul 19 2005
5 comments
427 views