RFR: 8369049: [TestBug] Update JUnit to Version 6.0.0
Nir Lisker
nlisker at openjdk.org
Mon Oct 6 12:05:03 UTC 2025
On Thu, 2 Oct 2025 15:45:33 GMT, Marius Hanl <mhanl at openjdk.org> wrote:
> JUnit 6.0.0 is out and we can consider updating to it.
>
> Release Notes: https://docs.junit.org/current/release-notes/index.html#release-notes-6.0.0
>
> Notes:
> - Java 17 is the baseline (so not a problem for us, since we have a higher baseline)
> - Deprecation were removed (not a problem, as we don't rely on any)
> - JUnit Vintage Engine is deprecated (not a problem, as we dropped support for it some months ago)
>
> JUnit 6 now uses a single version number for all dependencies, that is platform, jupiter and vintage (which we do not use anymore). That makes updating it easier.
>
> It also uses `JSpecify`, which is an annotation library for `@NonNull` and `@Nullable`. All version numbers for JUnit now use a single variable.
> I would suggest we postpone the migration to junit6 until after Eclipse provides support for it (screenshot taken with Eclipse Version: 2025-06 (4.36) Build id: I20250528-1830):
>
> <img alt="Screenshot 2025-10-02 at 10 46 25" width="1230" height="716" src="https://private-user-images.githubusercontent.com/107069028/496770878-ff6380fa-a81b-4f89-8fca-3adc3ec02475.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NTk3NTIxNjcsIm5iZiI6MTc1OTc1MTg2NywicGF0aCI6Ii8xMDcwNjkwMjgvNDk2NzcwODc4LWZmNjM4MGZhLWE4MWItNGY4OS04ZmNhLTNhZGMzZWMwMjQ3NS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUxMDA2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MTAwNlQxMTU3NDdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1lNzM2MDJmZWZmY2Q5MmJmYjU0ZmRiMmQ5MDVkMWNkMTJlMDMyZGYxMDBkZjZhMmY3MjYxM2I0YjdjMGEwNjJlJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.vMS868wXfVb5G5wOuJ3SCAm4_YgtNLGdmruah1rapKg">
The JUnit 5 runner works with JUnit 6. I don't know if they'll add another item to that list or just rename it to "JUnit 5+" for example.
-------------
PR Comment: https://git.openjdk.org/jfx/pull/1925#issuecomment-3371298053
More information about the openjfx-dev
mailing list