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

Javac does not enforce module name restrictions

    Details

    • Subcomponent:
    • Resolved In Build:
      b165
    • Verification:
      Verified

      Backports

        Description

        Here is the quote from latest JLS 9:

        7.7. Module Declarations
        "In the declaration of a module name (after module) and in any use of a module name (by requires, exports, or opens), every identifier in the name must end with a Java letter, or a compile-time error occurs. "

        Compiler does not produce an error.

        In cases when the last identifier ends with a digit compiler produces a warning.

        Either the compiler should report an error or the spec should be less strict.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  sadayapalam Srikanth Adayapalam
                  Reporter:
                  vrudomet Victor Rudometov
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  10 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: