Skip to content
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

fix: Update to jdk21 - EXO-71474 - Meeds-io/MIPs#91 #880

Closed
wants to merge 1 commit into from

Conversation

rdenarie
Copy link
Member

@rdenarie rdenarie commented May 3, 2024

Before this fix, the simpleDateFormat for locale en is MM/dd/yyyy, HH:mm:ss a
In jdk17 and under, the space between 'ss' and 'a' is a simple space In JDK 21, the space was changed to '[NNBSP]a' (OpenJDK information) : , so the .contains(" a") returns always false

This commit add the test on '[NNBSP]a' in addition of ' a' in order to make it work on both jdk version

Resolves Meeds-io/MIPs#91

@rdenarie rdenarie force-pushed the fix/task-71522 branch 2 times, most recently from 0350693 to daa7e8c Compare May 3, 2024 07:26
@rdenarie rdenarie changed the title fix: Update to jdk21 - EXO-71522 fix: Update to jdk21 - EXO-71474 May 3, 2024
Before this fix, the simpleDateFormat for locale en is
MM/dd/yyyy, HH:mm:ss a
In jdk17 and under, the space between 'ss' and 'a' is a simple space
In JDK 21, the space was changed to '[NNBSP]a' ([OpenJDK information](https://bugs.openjdk.org/browse/JDK-8324665)) : , so the .contains(" a") returns always false

This commit add the test on '[NNBSP]a' in addition of ' a' in order to make it work on both jdk version

It also add surefire configuration to work with jdk21

Resolves Meeds-io/MIPs#91
@rdenarie rdenarie changed the title fix: Update to jdk21 - EXO-71474 fix: Update to jdk21 - EXO-71474 - Meeds-io/MIPs#91 May 3, 2024
Copy link

sonarcloud bot commented May 3, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
3 New Critical Issues (required ≤ 0)
B Maintainability Rating on New Code (required ≥ A)

See analysis details on SonarCloud

Catch issues before they fail your Quality Gate with our IDE extension SonarLint

@rdenarie rdenarie marked this pull request as draft May 3, 2024 09:35
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>@{argLine} ${env.MAVEN_OPTS} --add-opens=java.base/jdk.internal.vm=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.security=ALL-UNNAMED</argLine>
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member

@boubaker boubaker May 16, 2024

Choose a reason for hiding this comment

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

@rdenarie rdenarie closed this May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants