This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Compling problem  RSS feed

 
cry kuranga
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I still very new to Java and I'm so confused will this statement when I was compling:

Note: H:\Program Files\Xinox Software\JCreator Pro\MyProjects\college\MainFrame.java uses unchecked or unsafe operations.

Note: Recompile with -Xlint:unchecked for details.

Please assist....
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch!

My guess is that you are using collections (like a List or Set) without proper use of generics. The compiler warning is just a warning -- this alone should not prevent the file from compiling.

To see the exact causes, recompile with the -Xlint flag as suggested.

>javac -Xlint:unchecked myFile.java
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!