• Post Reply Bookmark Topic Watch Topic
  • New Topic

Recompile with Xlint  RSS feed

 
Nick Kocher
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
.java uses unchecked or unsaved operations
recompile with Xlint for details.

what does it mean? what should I do?

I need your help please!
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 37496
548
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nick,
Welcome to JavaRanch!

In 1.5, Java introduced generics. Older code that is written without using generics gives this warning. Xlint is a compiler switch to tell Java that you know you are not using generics completely.
 
Nick Kocher
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jeanne,
Thank you very much for your help! I used now generics and it compiles fine.
At first I wanted to compile with the Xlint switch, but it says that javac doesn't know this switch. Why could that happen?
 
Henrique Sousa
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nick, maybe you missed the command syntax along the way (I did it myself). you should use "javac -Xlint:unchecked <sourcefiles>" to get the fully described warnings. Post the compiler error message if it does not work. Best regards.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!