-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P4
-
Affects Version/s: repo-valhalla
-
Component/s: tools
-
None
Several tests fail to compile classes when java.util.Optional is a value class.
Modify java.util.Optional to be a value class and build.
The following tests fail with the message below:
tools/javac/annotations/repeatingAnnotations/combo/TargetAnnoCombo.java
tools/javac/classfiles/attributes/innerclasses/InnerClassesInInnerEnumTest.java
tools/javac/classfiles/attributes/innerclasses/InnerClassesTest.java
tools/javac/jvm/VerboseClassPathTest.java
bad class file: /modules/java.base/java/util/Optional.class
method descriptor invalid for <init>
Modify java.util.Optional to be a value class and build.
The following tests fail with the message below:
tools/javac/annotations/repeatingAnnotations/combo/TargetAnnoCombo.java
tools/javac/classfiles/attributes/innerclasses/InnerClassesInInnerEnumTest.java
tools/javac/classfiles/attributes/innerclasses/InnerClassesTest.java
tools/javac/jvm/VerboseClassPathTest.java
bad class file: /modules/java.base/java/util/Optional.class
method descriptor invalid for <init>
- relates to
-
JDK-8282525 "Do the right thing" when compiling against value/primitive class files using a --source/--release version of earlier vintage
-
- Closed
-