Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Java (http://www.programmingforums.org/forum17.html)
-   -   -Xlint compile note (http://www.programmingforums.org/showthread.php?t=11675)

Xian_Fung Oct 23rd, 2006 8:48 PM

-Xlint compile note
 
I know two people have posted somewhat similar threads, but no one seems to hit the answer. After I compile, it get a note:

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

It has been said that it's not a warning or error, but what is Xlint? How can I recompile with Xlint? What can cause it?

AntiNinja Oct 23rd, 2006 9:34 PM

You're using JCreator right? I'm not sure what that exactly means (I never bothered to investigate) but I usually just copy the files and recompile it in a new project, that seems to work for me. ;)

Xian_Fung Oct 24th, 2006 11:50 AM

I use jGRASP. I think it's from transfering the file between two computers daily because it suddenly appeared.

Pizentios Oct 24th, 2006 11:52 AM

not sure if jGRASP can handle cvs, but if it does it might be something you want to look into, rather than manually transfering the files back and forth.

peace_of_mind Oct 24th, 2006 12:29 PM

Do the two computers have the same versions of the SDK?

http://java.sun.com/j2se/1.5.0/docs/...ris/javac.html

-Xlint:unchecked is a compiler option
:

javac -Xlint:unchecked
From the command line. Since you aren't using the command line here, you should be able to add this perhaps in the preferences menu. That should give you more detail on what the errors are.

Xian_Fung Oct 24th, 2006 7:24 PM

I don't think they are, my home computer has a year old version, while the other has the most current. Good point.


All times are GMT -5. The time now is 10:20 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC