Problem found in File#1 the fix needs to occur in File#2: - Example JDK 8->17: ejb-security - SecuredEJB.java - Analysis Hint is triggered on import from Java file and Hint suggests fix via pom.xml update #661
Labels
sample-problems
Example use-cases of migration problems to explore
Milestone
Below is an example that may be interesting for us to consider.
As we ran the
openjdk11
target againstejb-security
, we saw one violation that has some trouble for us to address with our current approach. Namely the rule removed-javaee-modules-00020 is written to look for the presence of an import in the java code, then it recommends to fix via apom.xml
change.Below is my understanding of how we will act as of
0.0.10
:removed-javaee-modules-00020
inSecuredEJB.java
SecuredEJB.java
with the analysis info that essentially says be sure to update thepom.xml
. As there are no changes required from analysis toSecuredEJB.java
there is no work to do (in theory, sometimes we get confused and we get back a diff to trashSecuredEJB.java
content and replace with a snippet ofpom.xml
)pom.xml
. (Could have some relation to Ability to consume and incorporate additional information from LLM that go beyond the immediate file being updated #131)Ideally we would have a means to take this extra information into advisement and act on it.
Sample App:
https://github.com/jboss-developer/jboss-eap-quickstarts/tree/7.2.0.GA/ejb-security
Specific Rule:
https://github.com/konveyor/rulesets/blob/main/default/generated/openjdk11/192-removed-javaee-modules.windup.yaml#L53-L76
The text was updated successfully, but these errors were encountered: