Skip to content

Fix JUnit 6 not working correctly with JDK 21 by expanding the initialize-at-build-time-list#832

Merged
jormundur00 merged 5 commits intomasterfrom
jormundur00/gh-831
Feb 9, 2026
Merged

Fix JUnit 6 not working correctly with JDK 21 by expanding the initialize-at-build-time-list#832
jormundur00 merged 5 commits intomasterfrom
jormundur00/gh-831

Conversation

@jormundur00
Copy link
Member

@jormundur00 jormundur00 commented Feb 4, 2026

In this PR we fix the issue of certain JUnit tests that run with JUnit 6 failing due to missing --initialize-at-build-time argument, when running the tests with --strict-image-heap.

Fixes: #831

@jormundur00 jormundur00 self-assigned this Feb 4, 2026
@jormundur00 jormundur00 added bug Something isn't working priority This issue needs to be treated with higher priority. labels Feb 4, 2026
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Feb 4, 2026
@jormundur00 jormundur00 marked this pull request as draft February 4, 2026 14:37
@jormundur00 jormundur00 force-pushed the jormundur00/gh-831 branch 6 times, most recently from e593201 to 54f6e13 Compare February 4, 2026 15:11
@jormundur00 jormundur00 changed the title Fix JUnit 6 not working correctly with JDK 25, expand initialize-at-build-time-list and run tests on 21 and 25 in CI Fix JUnit 6 not working correctly with JDK 25 and expand initialize-at-build-time-list Feb 4, 2026
@jormundur00 jormundur00 marked this pull request as ready for review February 4, 2026 15:46
alvarosanchez
alvarosanchez previously approved these changes Feb 4, 2026
@jormundur00 jormundur00 changed the title Fix JUnit 6 not working correctly with JDK 25 and expand initialize-at-build-time-list Fix JUnit 6 not working correctly with JDK 21 by expanding the initialize-at-build-time-list Feb 5, 2026
org.junit.jupiter.engine.config.CachingJupiterConfiguration
org.junit.jupiter.engine.config.DefaultJupiterConfiguration
org.junit.jupiter.engine.config.EnumConfigurationParameterConverter
org.junit.jupiter.engine.config.FilteringConfigurationParameterConverter
Copy link
Member

Choose a reason for hiding this comment

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

Is it safe? Does it have static fields?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, no static fields in the class.

@jormundur00 jormundur00 merged commit 94b5b54 into master Feb 9, 2026
610 of 611 checks passed
@jormundur00 jormundur00 deleted the jormundur00/gh-831 branch February 9, 2026 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working OCA Verified All contributors have signed the Oracle Contributor Agreement. priority This issue needs to be treated with higher priority.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

JUnit support broken with NBTs 0.11.3 and JDK 21

3 participants