Uploaded image for project: 'SonarJava'
  1. SonarJava
  2. SONARJAVA-4023

The Java analyzer should populate the classpath with all the JARs provided by the SDK

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.7
    • Component/s: Frontend, Plugin
    • Labels:

      Description

      When scanning a project with the property sonar.java.jdkHome, the Java analyzer collects the JARs in the given directory.
      This works fine for most JDKs but for IBM's JDK8's distribution, it misses one of the most important one: jre/lib/amd64/default/jclSC180/vm.jar.

      This is due to the way we collect JARs by looking restricting our search in lib/ and lib/ext or in jre/lib/ and jre/lib/ext.

      The analyzer should either introduce a specific exception for the IBM JDK or scan recursively for all available JARs in sonar.java.jdkHome.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dorian.burihabwa Dorian Burihabwa
              Reporter:
              dorian.burihabwa Dorian Burihabwa
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: