This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
User Jason Che-han Yip reported the following. I went to Project | Settings | Compiler Types and for all the types, I set Deprecation to true. I checked the deprecation tag replace and it's "-deprecation". It doesn't work. I'm still being told to run the compiler with -deprecation for details. Vaughn Spurlin verified the problem with builds 842 and 1067, but found that it worked correctly with Netbeans 3.0 build 4.
It was tested on [Netbeans-18] and [1083]. Deprecation property od compiler doesn't work correctly.
Created attachment 110 [details] test java file
Replacements for deprecation flag added to the commandline.
Additional info: All the optional flags that can be passed to the compiler (debug, deprecation, optimize) don't work with the corresponding settings in the compiler property sheet. If the option replacement (e.g. {deprecation}) is present in the compiler's descriptor commandline, the flag is always passed regardless of the property setting. If the replacement is missing from the command line, the flag is never passed although it is set to true.
a) deprecation, optimize, debug tags were added to the default commandline. b) all these tags are replaced based on the corresponding property's value - if the property is true, the tag is replaced by the replacement (the real option), if the property is false, it is replaced by an empty string.
[1117] Bug still lives
I tried flipping deprecation flag (and debuginfo, optimize too) in 1117 (06/10/2000, 06:40 CET) and it works for external compiler and fastjavac. {deprecation} is replaced properly on the commandline.
*** Bug 7753 has been marked as a duplicate of this bug. ***
Always had problems with this - just tried it on build 65 and still have the same problem. Am using FastJavac compilation. Deprecation is set to true, but when I compile the file it still tells me I am using deprecated APIs and to recompile with -deprecation.
I tested it yesterday (11 Jan 2001) on latest build from cvs and it works for me.
Resolved for 3.3.x or earlier, no new info since then -> closing.
Resolved for 3.4.x or earlier, no new info since then -> closing.