JDK-8001163 : [pack200] should support attributes introduced by JSR-308
Type:Enhancement
Component:core-libs
Sub-Component:java.util.jar
Affected Version:8
Priority:P3
Status:Closed
Resolution:Fixed
Submitted:2012-10-18
Updated:2013-07-31
Resolved:2013-05-16
The Version table provides details related to the release that this issue/RFE will be addressed.
Unresolved : Release in which this issue/RFE will be addressed. Resolved: Release in which this issue/RFE has been resolved. Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.
Type annotations JSR-308, introduces new class file format, mainly new attributes.
These new attributes need to be supported with Pack200.
Comments
Added 'sqebug' for aurora's sake.
Failing tests:
tools/pack200/AttributeTests.java
tools/pack200/Pack200Test.java
18-10-2012
----------System.err:(22/1246)----------
/export/home/aurora/sandbox/testbase/tools/pack200/pack200-verifier/src/xmlkit/ClassReader.java:851: error: AttributeVisitor is not abstract and does not override abstract method visitRuntimeInvisibleTypeAnnotations(RuntimeInvisibleTypeAnnotations_attribute,Element) in Visitor
class AttributeVisitor implements Attribute.Visitor<Element, Element> {
^
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
java.lang.RuntimeException: compilation failed
at Utils.compiler(Utils.java:306)
at Utils.init(Utils.java:106)
at Utils.doCompareBitWise(Utils.java:144)
at AttributeTests.test6746111(AttributeTests.java:61)
at AttributeTests.main(AttributeTests.java:39)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:474)
at com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:698)
at java.lang.Thread.run(Thread.java:722)
and
----------System.err:(26/1542)----------
/export/home/aurora/sandbox/testbase/tools/pack200/pack200-verifier/src/xmlkit/ClassReader.java:851: error: AttributeVisitor is not abstract and does not override abstract method visitRuntimeInvisibleTypeAnnotations(RuntimeInvisibleTypeAnnotations_attribute,Element) in Visitor
class AttributeVisitor implements Attribute.Visitor<Element, Element> {
^