Uploaded image for project: 'SonarLint For IntelliJ'
  1. SonarLint For IntelliJ
  2. SLI-393

Exported classpath entries of dependent modules are not considered

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.9
    • Component/s: Java analysis
    • Labels:
      None

      Description

      To populate properties `sonar.java.libraries` and `sonar.java.test.libraries` we are collecting classpath entries of the current module.
      We totally miss the fact that a module can depend on other modules (transitively) and each module can decide to export some of its classpath entries.

      This means we can easily analyze Java files with a truncated classpath, leading to FP/FN.

      See the attached reproducer:

        Attachments

        1. reproducer.png
          reproducer.png
          107 kB
        2. SLI-393.zip
          14 kB

          Issue Links

            Activity

              People

              Assignee:
              julien.henry Julien Henry
              Reporter:
              julien.henry Julien Henry
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: