Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-53692

Plugin POM: FindBugs sometimes fails on Java 11

    Details

    • Similar Issues:

      Description

      [INFO] --- findbugs-maven-plugin:3.0.5:findbugs (findbugs) @ label-verifier --- [INFO] Fork Value is true      [java] WARNING: An illegal reflective access operation has occurred      [java] WARNING: Illegal reflective access by org.dom4j.io.SAXContentHandler (file:/Users/nenashev/.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar) to method com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser$LocatorProxy.getEncoding()      [java] WARNING: Please consider reporting this to the maintainers of org.dom4j.io.SAXContentHandler      [java] WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations      [java] WARNING: All illegal access operations will be denied in a future release      [java] Warning: Unknown version of Java      [java] edu.umd.cs.findbugs.JavaVersionException: Could not parse Java version string: 11      [java] at edu.umd.cs.findbugs.JavaVersion.<init>(JavaVersion.java:68)      [java] at edu.umd.cs.findbugs.JavaVersion.<clinit>(JavaVersion.java:44)      [java] at edu.umd.cs.findbugs.DetectorFactory.isEnabledForCurrentJRE(DetectorFactory.java:248)      [java] at edu.umd.cs.findbugs.FindBugs.isDetectorEnabled(FindBugs.java:256)      [java] at edu.umd.cs.findbugs.FindBugs2$3.choose(FindBugs2.java:906)      [java] at edu.umd.cs.findbugs.plan.ExecutionPlan.build(ExecutionPlan.java:179)      [java] at edu.umd.cs.findbugs.FindBugs2.createExecutionPlan(FindBugs2.java:935)      [java] at edu.umd.cs.findbugs.FindBugs2.execute(FindBugs2.java:241)      [java] at edu.umd.cs.findbugs.FindBugs.runMain(FindBugs.java:402)      [java] at edu.umd.cs.findbugs.FindBugs2.main(FindBugs2.java:1200)      [java] The following classes needed for analysis were missing:      [java]   java.lang.Object      [java]   java.io.IOException      [java]   java.lang.String      [java]   java.io.PrintStream      [java]   java.util.regex.Pattern      [java]   java.util.regex.PatternSyntaxException      [java]   java.util.ArrayList      [java]   java.util.Iterator      [java]   java.lang.StringBuilder      [java]   java.util.Collections      [java]   java.util.Set      [java]   java.lang.NoSuchFieldError      [java]   java.io.Serializable      [java]   java.lang.NoClassDefFoundError      [java]   java.lang.NoSuchMethodError      [java]   java.lang.UnsatisfiedLinkError      [java]   java.lang.IncompatibleClassChangeError      [java]   java.util.AbstractList      [java] Missing classes: 15
      

        Attachments

          Issue Links

            Activity

            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            https://github.com/spotbugs/spotbugs/issues/711 is likely a response to that, skipping FindBugs for now

            Show
            oleg_nenashev Oleg Nenashev added a comment - https://github.com/spotbugs/spotbugs/issues/711  is likely a response to that, skipping FindBugs for now
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            At the JUG meetup in Lausanne on Nov 14, I was said that SpotBugs does not actually solve this issue in the latest release. They fixed some other issues, but not that one.

             

            Show
            oleg_nenashev Oleg Nenashev added a comment - At the JUG meetup in Lausanne on Nov 14, I was said that SpotBugs does not actually solve this issue in the latest release. They fixed some other issues, but not that one.  
            Hide
            batmat Baptiste Mathus added a comment -

            Probably to be looked at again when the switch to SpotBugs lands into the plugin-pom https://github.com/jenkinsci/plugin-pom/pull/128

            Show
            batmat Baptiste Mathus added a comment - Probably to be looked at again when the switch to SpotBugs lands into the plugin-pom https://github.com/jenkinsci/plugin-pom/pull/128
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            Yes, https://github.com/spotbugs/spotbugs/issues/711 is reported to be fixed in 3.1.7

            Show
            oleg_nenashev Oleg Nenashev added a comment - Yes, https://github.com/spotbugs/spotbugs/issues/711 is reported to be fixed in 3.1.7

              People

              • Assignee:
                Unassigned
                Reporter:
                oleg_nenashev Oleg Nenashev
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: