Skip to content

Update OnMessageIntroTest.java - #2492

Merged
pjfanning merged 2 commits into
apache:1.3.xfrom
pjfanning:java-pattern
Nov 14, 2025
Merged

Update OnMessageIntroTest.java#2492
pjfanning merged 2 commits into
apache:1.3.xfrom
pjfanning:java-pattern

Conversation

@pjfanning

Copy link
Copy Markdown
Member

@pjfanning
pjfanning marked this pull request as draft November 13, 2025 14:27
@pjfanning pjfanning added this to the 1.3.0 milestone Nov 13, 2025
* }
*
* Java 17 onward: JEP 406 (https://openjdk.org/jeps/406) =>
* Java 21 onward: JEP 441 (https://openjdk.org/jeps/441 =>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

actually, this can be used in Java 17 too, just lack some features.

@pjfanning pjfanning Nov 13, 2025

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

  • our existing docs have a section about pattern matching in Java but say Java 21 is when it was implemented - 441 is a Java 21 JEP
  • there were some preview JEPs before that but my experience is that orgs are reluctant to set the preview flag when running Java
  • it just is easier to say Java 21 than to give a long spiel about when which preview JEP became available when
  • anyone who has enabled preview on their JVM will just know anyway - no need to confuse everyone else

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

that's true, just jump to Java 21/25

@pjfanning
pjfanning marked this pull request as ready for review November 13, 2025 16:22
@pjfanning
pjfanning merged commit 112bf79 into apache:1.3.x Nov 14, 2025
9 of 10 checks passed
@pjfanning
pjfanning deleted the java-pattern branch November 14, 2025 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants