Building with a new javac flag
    Alex Buckley 
    alex.buckley at oracle.com
       
    Mon Nov 12 13:51:44 PST 2012
    
    
  
Dear build experts,
In JDK8, javac will be able to store the names/modifiers of method 
parameters in the class file. The names are stored only if a flag - 
let's say "-parameters" - is passed to javac.
(I know this feels like storing debug info with -g. Please set that 
concern aside.)
What would it take to compile JDK8 _without_ this flag when building 
Java SE Embedded, and _with_ this flag otherwise?
(I know this will raise immediate questions about the size of 
non-Embedded rt.jar. Please set that concern aside.)
David Holmes has suggested that javac flags are or could be expressed as 
a ./configure option, so that Embedded and non-Embedded build scripts 
can turn the -parameters flag on or off.
Alex
    
    
More information about the build-infra-dev
mailing list