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

[lworld] Confusing error message when using inline types with --release 13

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: repo-valhalla
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      Reported by Remi Forax:

      Hi all,
      currently if you try to compile with the version 13, you get a fun error message
      (because ValueBootstrapMethods is not a class which is a part of the version 13).

      bash-4.4$ /usr/jdk/jdk-13-lworld/bin/javac --release 13 Simple.java
      Simple.java:1: error: cannot access ValueBootstrapMethods
      inline class Simple {
               ^
          class file for java.lang.invoke.ValueBootstrapMethods not found
      1 error
      Fatal Error: Unable to find method makeBootstrapMethod
      I believe it's better to not allow "inline" classes if the source version is not 14.

        Attachments

          Activity

            People

            • Assignee:
              sadayapalam Srikanth Adayapalam
              Reporter:
              sadayapalam Srikanth Adayapalam
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: