cancel
Showing results for 
Search instead for 
Did you mean: 

How to configure in build the option "Xlint:deprication"

sven_rickelt
Explorer
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (1)

Answers (1)

sven_rickelt
Explorer
0 Kudos

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