Skip to content

Conversation

rkampani
Copy link

@rkampani rkampani commented May 19, 2025

What's changed?

Java version >= 25
(Also double check Jep 513 lands in Java 25)

Before Applying Recipe

class A {
    public A(String bar) {
        super();
        if(bar.equals("test"))
            throw new RuntimeException();
    }
}

After Applying Recipe

class A {
    public A(String bar) {
        if(bar.equals("test"))
            throw new RuntimeException();
        super();
    }
}

What's your motivation?

Anything in particular you'd like reviewers to focus on?

Anyone you would like to review specifically?

Have you considered any alternatives or workarounds?

Any additional context

Checklist

  • I've added unit tests to cover both positive and negative cases
  • I've read and applied the recipe conventions and best practices
  • I've used the IntelliJ IDEA auto-formatter on affected files

github-actions[bot]

This comment was marked as spam.

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some suggestions could not be made:

  • src/main/resources/META-INF/rewrite/examples.yml
    • lines 997-1007
    • lines 1036-1042
    • lines 7108-7107

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some suggestions could not be made:

  • src/main/resources/META-INF/rewrite/examples.yml
    • lines 997-1007
    • lines 1036-1042
    • lines 7108-7107

@timtebeek
Copy link
Member

We're seeing some unrelated test failures; no need for alarm or debugging; we'll try to get those sorted soon. :)

@timtebeek timtebeek moved this from In Progress to Ready to Review in OpenRewrite May 20, 2025
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some suggestions could not be made:

  • src/main/resources/META-INF/rewrite/examples.yml
    • lines 701-700
    • lines 997-1007
    • lines 1036-1042

@github-project-automation github-project-automation bot moved this from Ready to Review to In Progress in OpenRewrite May 20, 2025
@MBoegers
Copy link
Contributor

Thanks for your contribution, I love seeing new Language features been picked up :) I think 1 or 2 tests should be enough to make sure we are JLS compliant in the context of the Early construction contexts.

@timtebeek timtebeek marked this pull request as draft July 27, 2025 14:47
@timtebeek
Copy link
Member

We've just merged the Java 25 parser support, so we can have another look here now. Would you want to continue this work @rkampani , or would you like us to take over?

@rkampani
Copy link
Author

rkampani commented Sep 3, 2025

#736 (comment)
@timtebeek Thank you for the reminder — I had completely forgotten about it. I've just pushed the changes. Could you please re-review when you get a chance

@timtebeek timtebeek marked this pull request as ready for review September 10, 2025 09:03
@timtebeek timtebeek moved this from In Progress to Ready to Review in OpenRewrite Sep 10, 2025
@timtebeek timtebeek self-requested a review September 10, 2025 09:03
Employee(int age) {
if (age < 18 || age > 67)
throw new IllegalArgumentException("Age must be between 18 and 67");
super(age);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this changing semantics? Supplying -4 will now raise "Age must be between 18 and 67" instead of "Age cannot be negative".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
java 25+ recipe Recipe requested
Projects
Status: Ready to Review
Development

Successfully merging this pull request may close these issues.

4 participants