Description of problem:
When transforming the attached application to Jakarta targets, they function correctly when executed individually.
They also work as expected when executed sequentially, provided that the 'jakarta-imports' target is run last.
However, if the transformation is executed in any other order, all targets executed after 'jakarta-imports' will fail.
Version-Release number of selected component (if applicable): upstream
How reproducible: always
Steps to Reproduce:
1. execute a transformation using the following command
kantra transform openrewrite --input ~/Desktop/complete-duke2 --target jakarta-imports
2. execute a tranformation on the same application using now a different jakarta target (./kantra transform openrewrite --input ~/Desktop/complete-duke2 --target jakarta-imports or jakarta-xml)
Actual results:
Any transformation executed after jakarta-imports will fail
Expected results:
If the 'jakarta-imports' transformation is successful, and the code builds without errors, and all other combinations of Jakarta targets also work, executing the 'jakarta-imports' transformation first and then the others should work as well
Additional info:
- links to
-
RHBA-2023:120350 Migration Toolkit for Applications bug fix and enhancement update