You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This week, I attempted to modernize an old plugin still using Java 6. Our current set of recipes failed, necessitating the use of existing OpenRewrite recipes for Java modernization before applying our custom recipes.
Challenges Encountered
Compilation Verification: Checking if the plugin still compiled after each set of applied recipes was a major challenge.
JDK Compatibility: Unable to verify with JDK 11 or 17, I had to revert to JDK 8. For plugins last compiled with JDK 6, verification with JDK 6 might be necessary.
Proposed Approach
Before applying any recipe, we should:
Attempt to compile the plugin (without tests) using the specified Java version.
Apply the recipe only if the initial compilation succeeds.
Considerations
Recipe Metadata: We may lack information about which JDK to use with specific recipes.
JDK Version Recipes: For JDK version-specific recipes, we should run them with the target JDK.
Discussed in #119
Originally posted by gounthar July 24, 2024
Recent Experience
This week, I attempted to modernize an old plugin still using Java 6. Our current set of recipes failed, necessitating the use of existing OpenRewrite recipes for Java modernization before applying our custom recipes.
Challenges Encountered
Proposed Approach
Before applying any recipe, we should:
Considerations
Tools and Techniques
Potential Solutions
exec()
.Questions for Consideration
Your feedback and suggestions on these ideas would be greatly appreciated.
The text was updated successfully, but these errors were encountered: