[Source] xj3d.nps branch build properties feedback: -Xlint:deprecated to -Xlint:deprecation

Norbraten, Terry (CIV) tdnorbra at nps.edu
Tue Apr 2 06:45:45 PDT 2013


That was my bad.  -Xlint:deprecation is the correct javac flag for JDK 1.6 as well

On Apr 1, 2013, at 10:58 PM, Don Brutzman <brutzman at nps.edu> wrote:

> hi Terry, bravo on all of the Xj3D cleanups you have been continuing work on.
> 
> i got the following problem tonite, Netbeans 7.3 jdk 1.7.0_17
> 
>> compile.ogl:
>> Compiling 2383 source files to C:\Xj3D.nps\classes
>> javac: invalid flag: -Xlint:deprecated
>> Usage: javac <options> <source files>
>> use -help for a list of possible options
>> C:\Xj3D.nps\build_nps.xml:185: Compile failed; see the compiler error output for details.
>> BUILD FAILED (total time: 3 seconds)
> 
> build.properties showed
> 	javac.compilerargs=${javac.extdirs} -g -Xlint:unchecked -Xlint:deprecated
> 
> 	javac -help
> then
> 	javac -help -X
> revealed
>   [...]
> -Xlint:{all,cast,classfile,deprecation,dep-ann,divzero,empty,fallthrough,finally,options,overrides,path,processing,rawtypes,serial,static,try,unchecked,varargs,-cast,-classfile,-deprecation,-dep-ann,-divzero,-empty,-fallthrough,-finally,-options,-overrides,-path,-processing,-rawtypes,-serial,-static,-try,-unchecked,-varargs,none} Enable or disable specific warnings
> 
> presumably jdk 7 is now stricter about settings and this revealed an incorrect setting which was overlooked earlier.
> 
> and so, changed spelling of -Xlint:deprecated to
> 
> 	javac.compilerargs=${javac.extdirs} -g -Xlint:unchecked -Xlint:deprecation
> 
> and everything builds OK.  only 78 warnings now!  progress.  compilation seemed fast too, only 28 seconds following a clean.  8)
> 
> not sure if this change causes a problem with JDK 1.6, hopefully someone can confirm OK.
> 
> interestingly, adding flag -Xlint:all shows more warnings, some easy (such as duplicate casts).
> 
> the main branch compiles oK also (44 seconds).  don't think it uses the -Xlint settings at all, given repeated output messages of
>> Note: Recompile with -Xlint:unchecked for details.
> 
> all the best, Don
> -- 
> Don Brutzman  Naval Postgraduate School, Code USW/Br       brutzman at nps.edu
> Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA   +1.831.656.2149
> X3D graphics, virtual worlds, navy robotics http://faculty.nps.edu/brutzman




More information about the Source mailing list