RFR: 7904028: jcstress: Address s.m.Unsafe use warnings which fail build on JDK 23+

Pavel Rappo prappo at openjdk.org
Mon Jun 9 14:11:15 UTC 2025


On Mon, 9 Jun 2025 13:21:50 GMT, Jiří Vaněk <jvanek at openjdk.org> wrote:

> Is the `@SuppressWarnings("removal")` 's "removal" really good enough description? Maybe "replace by VarHandle" is better? Or link sone jdk jira issue? `"removal: CODETOOLS-..."` As for me, better to do this now, as yuo have it, and later fix it properly, as the issues in jdk 23+ are multiplying. Thanx!

If I understood you correctly, you are asking about the "removal" argument of the `@SuppressWarnings` annotation. If so, then this argument is not free-form, but one of a few [predefined values](https://docs.oracle.com/javase/specs/jls/se23/html/jls-9.html#jls-9.6.4.5).

-------------

PR Comment: https://git.openjdk.org/jcstress/pull/165#issuecomment-2955907855


More information about the jcstress-dev mailing list