Building with a new javac flag

David Holmes david.holmes at oracle.com
Mon Nov 12 16:13:56 PST 2012


On 13/11/2012 7:51 AM, Alex Buckley wrote:
> 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.

But I also questioned whether it should be a configure option as you 
can't make every possible tool flag be a configure option.

The basic requirement is that the -parameters setting must be 
customizable, so we need to decide the best way to achieve that.

David

> Alex



More information about the build-infra-dev mailing list