Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8282107

Valhalla: javac does not correctly recognize value class factory <init>

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • repo-valhalla
    • repo-valhalla
    • tools
    • 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>

      Attachments

        Issue Links

          Activity

            People

              sadayapalam Srikanth Adayapalam (Inactive)
              rriggs Roger Riggs
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: