konveyor / konveyor/rulesets

[BUG] java-removals-00150 rule not working

Open
#172 4 comments 0 reactions 0 assignees View on GitHub
kind/bug priority/important-soon stale triage/accepted
Dominant language
Java
Stars
6
Forks
49
PR merge metrics
No merged PRs in 30d

Description

I executed analysis on the sample application using the class-loader using target: openjdk21: https://github.com/agoncal/agoncal-application-petstore-ee7/blob/7eeb9dd3f2ded2e7b1423b26f65f5cecdbaa4507/src/main/java/org/agoncal/application/petstore/view/AbstractBean.java#L36. which did not find and create an incident for this rule.
The rule indicates "unmatched" in the output.xml.

It functions correctly when the import to java.lang is explicitly added.

The rule is detailed here: https://github.com/konveyor/rulesets/blob/5136b0b3fabe616103acbd0e6e4222dc11347d0e/default/generated/openjdk11/191-java-removals.windup.yaml#L375. Please let me know if you need any additional details

Contributor guide

Open the contributing guide

Research direction

Start by reviewing default/generated/openjdk11/191-java-removals.windup.yaml around java-removals-00150 and the referenced AbstractBean.java line. Reproduce the class-loader analysis against openjdk21, comparing the result with and without the explicit java.lang import. Done means the rule produces an incident for the sample case instead of reporting unmatched.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.