• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • core
    • Java version: 11.0.13, vendor: Ubuntu, runtime: /usr/lib/jvm/java-11-openjdk-amd64

      While working on Jenkins code using Java 11, I have repeatedly run into MCOMPILER-346, which makes it nearly impossible to resolve compilation errors. As a workaround, I have been switching to Java 8 to resolve my compilation errors, but that is no longer viable if we drop support for Java 8. I have just discovered a new workaround: running Maven with -Dmaven.compiler.forceJavacCompilerUse=true. Until MCOMPILER-346 is fixed, we should enable this workaround by default for all Jenkins builds. Otherwise, people compiling with Java 11 will get strange {{NullPointerException}}s or {{AssertionError}}s when their code doesn't compile rather than a comprehensible error message explaining the source of the compilation error.

          [JENKINS-67960] Work around MCOMPILER-346

          Basil Crow created issue -
          Basil Crow made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Basil Crow made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]
          Basil Crow made changes -
          Remote Link New: This issue links to "jenkinsci/pom#235 (Web Link)" [ 27448 ]
          Basil Crow made changes -
          Remote Link New: This issue links to "jenkinsci/plugin-pom#511 (Web Link)" [ 27449 ]
          Basil Crow made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Review [ 10005 ] New: Fixed but Unreleased [ 10203 ]

          Basil Crow added a comment -

          The fix for the underlying OpenJDK issue has been backported to jdk11u-dev in openjdk/jdk11u-dev#919 toward OpenJDK 11.0.16, currently scheduled for a July 2022 GA.

          Basil Crow added a comment - The fix for the underlying OpenJDK issue has been backported to jdk11u-dev in openjdk/jdk11u-dev#919 toward OpenJDK 11.0.16, currently scheduled for a July 2022 GA.

          Basil Crow added a comment -

          Released in plugin parent POM 4.38 and parent POM 1.72.

          Basil Crow added a comment - Released in plugin parent POM 4.38 and parent POM 1.72.
          Basil Crow made changes -
          Status Original: Fixed but Unreleased [ 10203 ] New: Resolved [ 5 ]
          Basil Crow made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]

            basil Basil Crow
            basil Basil Crow
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: