I got this message "Note: Recompile with -Xlint:unchecked for details."

I always got this message "Note: Recompile with -Xlint:unchecked for details.". Can anyone help me to solve this problem.radix.
[148 byte] By [YouBugMea] at [2007-11-27 3:55:18]
# 1

This can happen when, for instance you mix legacy and code using generics. (http://java.sun.com/docs/books/tutorial/java/generics/erasure.html) If you what the message says you will get more information - like the line(s) where the problem occurs and often a suggested alternative.

By "recompile with -Xlint:unchecked" they mean you should add that switch to the command you use for compiling like:javac -Xlint:unchecked -cp . MyClass.java

pbrockway2a at 2007-7-12 8:59:27 > top of Java-index,Java Essentials,Java Programming...
# 2

This may be because you are using some generic classes and havent declared their type properly.

like compiling the below code will give the same error(assuming that byte[ ] bytes is prepopulated)

Vector vect= new Vector();

for (int j=0;j<size;j++){

vect.add(bytes[j]);

}

Here Vector is a generic Class that you are using to store bytes.

so to avoid the error you need to write the code as following

Vector><Byte> vect= new Vector<Byte> ();

for (int j=0;j<size;j++){

vect.add(bytes[j]);

}>

munch11a at 2007-7-12 8:59:27 > top of Java-index,Java Essentials,Java Programming...
# 3
It owuld have been better if you also had quoted the very descriptive part before the "Note: ...".
CeciNEstPasUnProgrammeura at 2007-7-12 8:59:27 > top of Java-index,Java Essentials,Java Programming...
# 4
thanx pbrockway2 know i understand why i got this message.
YouBugMea at 2007-7-12 8:59:27 > top of Java-index,Java Essentials,Java Programming...
# 5
You're welcome.
pbrockway2a at 2007-7-12 8:59:27 > top of Java-index,Java Essentials,Java Programming...
# 6
thanx munch11 for your reply, now i know how to fix this problem.
YouBugMea at 2007-7-12 8:59:27 > top of Java-index,Java Essentials,Java Programming...