[BUG] CommonJ related issues are being found when the library is not being used by the analyzed application or its dependencies #350
Labels
kind/bug
Categorizes issue or PR as related to a bug.
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
Milestone
Is there an existing issue for this?
Konveyor version
0.3-alpha5
Priority
Critical
Current Behavior
Analysis is finding CommonJ related issues in the org.springframework.spring-tx:5.3.7 dependency from the tackle-testapp application. Examining the library reveals that the CommonJ API is not being used in the code for the library. For example, the analyzer found an incident of the issue Replace CommonJ WorkManager with a JCA Resource Adapter (commonj-05000) in org.springframework.jca.support.ResourceAdapterFactoryBean:
The rule commonj-05000 looks for references to the class commonj.work.WorkManager via the pattern construct. Nevertheless, that class is never referenced in the org.springframework.jca.support.ResourceAdapterFactoryBean class, as the import it does for the WorkManager class actually comes from the JCA Resource Adapter instead.
Same happens with the rule commonj-03000 for the io.micrometer.micrometer-core:1.7.0 dependency in the class io.micrometer.core.instrument.binder.httpcomponents.MicrometerHttpClientInterceptor, although this time the import for the Timer class is for io.micrometer.core.instrument.Timer
The analysis is wrongly finding incidents for the following issues:
In fact, no CommonJ dependencies are being found by the analyzer, or at least they are not listed for the given application:
Expected Behavior
No incidents should have been found for the listed issues in the tackle-testapp when running the analysis with the provided configuration.
How Reproducible
Always (Default)
Steps To Reproduce
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: