Details
-
Bug
-
Resolution: Fixed
-
P4
-
repo-valhalla
-
None
Description
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>
Attachments
Issue Links
- relates to
-
JDK-8282525 "Do the right thing" when compiling against value/primitive class files using a --source/--release version of earlier vintage
- Open