-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
J2ee10 - remove_parm soap_element_factory recipes #303
J2ee10 - remove_parm soap_element_factory recipes #303
Conversation
…ewrite-migrate-java with conflicts.
…actoryTest j2ee10
src/main/resources/META-INF/rewrite/classpath/method_expression_test.jar
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm seeing a failed test, missing a recipe called org.openrewrite.java.migrate.jakarta.RemoveNewInstance
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why we have this file? I've checked the contents and it's just a Test1 class that it's not being used and a stub for MethodExpression. Why don't we add the actual jakarta.el-api jar or add the stub in the test itself?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes we can use the jakarta.el-api.jar instead
void doY() { | ||
String x = "test"; | ||
x.toUpperCase(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's the purpose of this extra stuff in the test?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This extra stuff was just to ensure nothing happened to it and I have used it as a negative test..
After a bit more of diving into the recipe: |
Pushed some changes:
Can you take a look at it and discuss about it? |
I approve the slight test changes and adding the .jars. ,Regarding The static method SOAPElementFactory.newInstance() is removed without replacement. See the Jakarta EE 9.1 documentation. I thought we needed to remove it not replace it .Since the documentation doesn't ask us to replace it and our rule description asks us to remove without replacement. I guess we could replace it with the SOAPFactory.newInstance(). Just checked this would be fine..Could we merge your changes.Thanks! |
Merged! Thank you very much for your time and contributions @ranuradh :) |
Thanks a ton @joanvr! |
What's changed?
Anything in particular you'd like reviewers to focus on?
@timtebeek @joanvr
Anyone you would like to review specifically?
Have you considered any alternatives or workarounds?
Any additional context
Checklist
./gradlew licenseFormat