Bug 25347 - Deprecation-Flag in Ant doesn't work with Eclipse Compiler
Summary: Deprecation-Flag in Ant doesn't work with Eclipse Compiler
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0.1   Edit
Hardware: PC Windows NT
: P3 normal (vote)
Target Milestone: 2.0.2   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-24 14:12 EDT by Dirk Wissmann CLA
Modified: 2002-10-31 09:32 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Wissmann CLA 2002-10-24 14:12:32 EDT
When I have a build.xml with a target, that has 'deprecation=off' declared
inside the <javac>-task, nevertheless detailed deprecation warnings are
displayed when I use the internal Eclipse compiler (property build.compiler set
to "org.eclipse.org.eclipse.jdt.core.JDTCompilerAdapter"). So: the result is the
same with 'deprecation=on' and 'deprecation=off', but it should be different.

Using the "normal" javac-Compiler, when using 'deprecation=off' only a short
warning at the end of the compilation is shown, that informs that some sources
used deprecated API's. Only when using the Option -deprecation (which is only
used by setting 'deprecation=on'), detailed information is shown about it.
Comment 1 Olivier Thomann CLA 2002-10-25 09:02:25 EDT
The Eclipse batch compiler doesn't have exactly the same "-deprecation" option
than javac. The best I can do is completely remove the deprecation warning when
deprecation="off" and put it back when deprecation="on".
That would be fine for you?
If yes, I have a fix ready for next integration build.
Comment 2 Dirk Wissmann CLA 2002-10-25 13:25:57 EDT
This fix would be fine for me. Thank you!
Comment 3 Olivier Thomann CLA 2002-10-28 09:30:50 EST
Fixed and released in 2.1 stream.
Comment 4 Olivier Thomann CLA 2002-10-30 13:16:42 EST
We should backport it to 2.0.2 stream.
Comment 5 Olivier Thomann CLA 2002-10-31 09:07:46 EST
Backported to 2.0.2 stream.
Comment 6 Olivier Thomann CLA 2002-10-31 09:32:55 EST
Verified.