Stapler does not compile with Java 11

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      When compiling Stapler with a snapshot of jenkinsci/pom#209, the following compilation error occurs:

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.10.0:compile (default-compile) on project stapler-groovy: Compilation failure: Compilation failure: 
      [ERROR] /home/basil/src/jenkinsci/stapler/groovy/src/main/java/org/kohsuke/stapler/jelly/groovy/StaplerClosureScript.java:[30,19] as of release 9, '_' is a keyword, and may not be used as an identifier
      [ERROR] /home/basil/src/jenkinsci/stapler/groovy/src/main/java/org/kohsuke/stapler/jelly/groovy/StaplerClosureScript.java:[31,16] as of release 9, '_' is a keyword, and may not be used as an identifier
      [ERROR] /home/basil/src/jenkinsci/stapler/groovy/src/main/java/org/kohsuke/stapler/jelly/groovy/StaplerClosureScript.java:[38,19] as of release 9, '_' is a keyword, and may not be used as an identifier
      

      This is tracked in GitHub as jenkinsci/stapler#309.

            Assignee:
            Basil Crow
            Reporter:
            Basil Crow
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: