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

ModuleDescriptor.Builder should reject class names that are restricted identifiers

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 10, 13
    • Fix Version/s: 16
    • Component/s: core-libs
    • Labels:
      None

      Description

      It is illegal to declare a class named "var". The ModuleDescriptor.Builder methods that take class names (uses, provides, mainClass) need to be updated to reject "var". The existing tests in ModuleDescriptorTest will need to be updated as part of this change.

      This issue was reported here:
      https://mail.openjdk.java.net/pipermail/core-libs-dev/2019-March/059190.html

        Attachments

          Activity

            People

            • Assignee:
              alanb Alan Bateman
              Reporter:
              alanb Alan Bateman
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: