Skip to Main Content

New to Java

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!

What does -Xlint compile error mean?

807601May 10 2008 — edited May 10 2008
I am new to Java.... I have an application and when I run the javac compiler I am getting the following error.

Note: InventoryFinal.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

So then I compiled using javac -Xlint and I get the following error

InventoryFinal.java:20: warning: [unchecked] unchecked conversion
found : java.util.ArrayList
required: java.util.ArrayList<Company>
al=new ArrayList();
^
1 warning

After I compile with the -Xlint switch the application runs as I expect it to. I am concerned about this message and would like to undestand how to fix the problem
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 7 2008
Added on May 10 2008
10 comments
307 views