Bug 25347

Summary: Deprecation-Flag in Ant doesn't work with Eclipse Compiler
Product: [Eclipse Project] JDT Reporter: Dirk Wissmann <dwissmann>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0.1   
Target Milestone: 2.0.2   
Hardware: PC   
OS: Windows NT   
Whiteboard:

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.