Question:
what is -Xlint in compiling java program?why this is done?
anonymous
2008-03-03 03:21:03 UTC
while compiling a modelled proxy server program in java with usual javac command a note prompted stating
program.java uses unchecked or unsafe operation
recompile with -Xlint:unclecked for detailes

why is this so?
what do this -Xlint instruct the compiler
Seven answers:
dafrawg
2008-03-03 03:30:17 UTC
The option -Xlint can be used to enable or disable warnings. By saying -Xlint:unchecked, you enable all detailed warnings about unchecked or unsafe operations. Instead of just getting a general warning that your program contains them, you'll get a detailed list of parts of your code that contains unsafe operations.
?
2015-08-18 10:36:41 UTC
This Site Might Help You.



RE:

what is -Xlint in compiling java program?why this is done?

while compiling a modelled proxy server program in java with usual javac command a note prompted stating

program.java uses unchecked or unsafe operation

recompile with -Xlint:unclecked for detailes



why is this so?

what do this -Xlint instruct the compiler
THE BAD BOY
2008-03-03 03:36:51 UTC
my Friend

Ur Using deprecated Apis in Ur Programming



So To Get Detailed summary Of Warnings U Must Have To Compile With -xlint

so That Warning Get Dispalyed Properly



these r Just Warning

Nothing To Worry @



But Avoid Using Deprcated Apis



Ok All The Best
Kaydell
2008-03-03 06:38:25 UTC
lint options help you to debug your source code more easily. You will be more productive if you turn on all warnings and handle them, unless you have a legacy system that is too huge with too much inertia to change.



For new software, it's good to use lint to help you let the compiler find as many bugs as possible for you.



When you get warnings, you should either fix the code or suppress the warning with an annotation.
?
2016-11-12 07:01:23 UTC
Xlint Unchecked
codrguy
2008-03-03 03:27:43 UTC
-xlint Enables all recommended warnings,-Xlint:unclecked Gives more detail for unchecked conversion warnings that are mandated by the Java Language Specification.
?
2016-03-29 09:54:36 UTC
For the best answers, search on this site https://shorturl.im/rCu34



You can try using TEXTPAD; its free and it will compile for you from the menu bar. It will also help you debug. As long as you have JDK then you will be able to compile. It will run your apps via command line and you wont have to


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...