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

Error messages when compiling a malformed module-info.java confusing

    XMLWordPrintable

Details

    • b133
    • Verified

    Description

      Consider the following where "exports" has a typo and is spelt "export":

      module java.transaction {
        requires java.base;
        resuires javax.interceptor.javax.interceptor.api;
        requires public javax.enterprise.cdi.api;
        requires public java.sql;
        requires public java.rmi;
        export javax.transaction;
      }

      javac prints

      module-info.java:2: error: '}' expected
        requires java.base;

      Attachments

        Activity

          People

            sadayapalam Srikanth Adayapalam (Inactive)
            alanb Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: