Building with a new javac flag

Alex Buckley alex.buckley at oracle.com
Thu Nov 15 14:27:55 PST 2012


On 11/14/2012 10:11 PM, David Holmes wrote:
> On 15/11/2012 3:14 PM, Jonathan Gibbons wrote:
>> I believe the plan would be to use pack200 to strip the attribute.
>
> I don't know exactly what that means. Does it strip the attribute out of
> the existing class file, or does it create a copy without the attribute
> in it? Either way it means we need two copies of the .class files. If it
> could be stripped as part of the jarring process we'd only need a
> temporary copy of each file. There is about 160MB of .class files in a
> build.

pack200 --method-attribute=MethodParameters=strip -r rt.jar  will take 
rt.jar, pack it without MethodParameters in class files, and immediately 
unpack it to rt.jar. We are experimenting with this locally. FWIW 
pack200 never accepts class files as input or output.

Alex



More information about the build-infra-dev mailing list