Skip to content

Conversation

Jenson3210
Copy link
Contributor

As discussed we will not run this recipe untill the issue is identified

@github-project-automation github-project-automation bot moved this to In Progress in OpenRewrite Jun 24, 2025
@greg-at-moderne
Copy link
Contributor

greg-at-moderne commented Jun 24, 2025

The CI is failing with

JavaxInjectToJakartaInjectTest > projectWithJavaxInject() FAILED

and specifically on comparing versions:

2.0.1.MR
2.0.1

of jakarta.inject:jakarta.inject-api.

Which I guess might have changed after openrewrite/rewrite#5662

EDIT: the same test fails in main as well.

@github-project-automation github-project-automation bot moved this from In Progress to Ready to Review in OpenRewrite Jun 24, 2025
@Jenson3210 Jenson3210 merged commit f63ed63 into main Jun 24, 2025
2 checks passed
@Jenson3210 Jenson3210 deleted the disable-switch-pattern-matching-untill-issue-fixed branch June 24, 2025 15:02
@github-project-automation github-project-automation bot moved this from Ready to Review to Done in OpenRewrite Jun 24, 2025
.contains("<groupId>jakarta.inject</groupId>")
.contains("<artifactId>jakarta.inject-api</artifactId>")
.containsPattern("<version>[0-9]+\\.[0-9]+\\.[0-9]+</version>")
.containsPattern("<version>[0-9]+\\.[0-9]+\\.[0-9]+[\\w\\W]*</version>")
Copy link
Member

Choose a reason for hiding this comment

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

This looks a bit odd to me:

\w A word character: [a-zA-Z_0-9]
\W A non-word character: [^\w]

So then to me, [\\w\\W]* would seem equivalent to .*; correct?

Copy link
Contributor

Choose a reason for hiding this comment

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

That's correct, I tried with .*? at first and that didn't match but I didn't realize it was due to the conservative matching

Copy link
Member

Choose a reason for hiding this comment

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

Fixed in 0840ea5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants