on 04-19-2010 2:21 PM
Hi all,
how I can define the "Xlint:deprication" option in Eclipse?
I would follow the warning:
[javac] WARNING: Note: Some input files use or override a deprecated API.
[javac] WARNING: Note: Recompile with -Xlint:deprecation for details.
[javac] WARNING: Note: Some input files use unchecked or unsafe operations.
[javac] WARNING: Note: Recompile with -Xlint:unchecked for details.
But I don't know, how to do this.
Can you help?
Thanks
Sven
Hi Sven,
Have you checked your settings under <em>Java u2192 Compiler u2192 Errors/Warnings</em> section <em>Deprecated and restricted API</em> (either project settings if defined there or the general settings)? As long as I don't have configure to give error messages for deprecated features I can still use them and the compiler doesn't complain (or spits out just a warning depending on what I set).
Cheers, harald
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Harald,
yes I've checked this, and now I will set them to "Error" instead of "Warning" to find out usage of depricated classes or types.
Formerly I would try to find out this by "Warnings", but now I think it's better to set the options to "Error".
Thanks
Sven
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.