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

Ignoring testNestedRecordWithListWithMissingFieldInQuery due to JDK (21) bug #2240

Merged
merged 1 commit into from
Dec 11, 2024

Conversation

mskacelik
Copy link
Contributor

@Test
public void testNestedRecordWithListWithMissingFieldInQuery() throws Exception {
if (System.getProperty("java.version").startsWith("21.")) {
Copy link
Member

@jmartisk jmartisk Dec 11, 2024

Choose a reason for hiding this comment

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

This affects 22 too, could we make it safer and do something along the lines of

String major = Integer.valueOf(System.getProperty("java.version").split("\\.")[0]);
org.junit.Assume.assumeFalse("Skipping testNestedRecordWithListWithMissingFieldInQuery because of bug in JDK 21 and 22, see https://bugs.openjdk.org/browse/JDK-8320575", 
  major == 21|| major == 22);

?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yea could do

@jmartisk jmartisk merged commit fe0c9b5 into smallrye:main Dec 11, 2024
5 checks passed
@mskacelik mskacelik deleted the java-21-test-ignore branch December 11, 2024 21:25
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.

2 participants