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

Error while compiling "requires static public"

    XMLWordPrintable

    Details

      Description

      try to compile module-info.java
      module A{
      requires static public jdk.compiler;
      }

      javac module-info.java
      module-info.java:2: error: <identifier> expected
              requires static public jdk.compiler;

      With "requires public static jdk.compiler;" works fine

        Attachments

          Activity

            People

            Assignee:
            jlahoda Jan Lahoda
            Reporter:
            anazarov Andrey Nazarov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: