8000 [BUG] METHOD_CALL detecting false positive matches · Issue #827 · konveyor/analyzer-lsp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[BUG] METHOD_CALL detecting false positive matches #827
Open
@Descatles

Description

@Descatles

Is there an existing issue for this?

  • I have searched the existing issues

Konveyor version

v0.6.2

Priority

Critical

Current Behavior

Taking this project Biblivre as an example, when running on rule local-storage-00001. Lots of function call unrelated is matched. e.g. the following two

Image

Seems they are matching this pattern java.nio.file.Paths.get* but these two function call are not from package java.nio.file.Paths

Expected Behavior

When matching this pattern java.nio.file.Paths.get* only method call from java.nio.file.Paths could be matched

How Reproducible

Always (Default)

Steps To Reproduce

I have attached my result here

biblivre-local-storage-00001.zip

Environment

- **Analyzer Image SHA** 
- **JDTLS  base image SHA**
- **Provider Settings JSON**

Anything else?

I’ve noticed that this is a common issue in method call.
Other rule like azure-keystore-certificates-02000, java-removals-00110 and others also produce false positives.
There’s an existing fix in the java‑analyzer‑bundle repositoryhttps://github.com/konveyor/java-analyzer-bundle/pull/100 but seems it doesn’t address every case.
Do we have any deeper insight into the root cause of these mismatches? And any plan to fix it further?

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0