From 80a734161fc2844989672483a91164f0d6b6930e Mon Sep 17 00:00:00 2001 From: Andrew Helwer <2n8rn1w1f@mozmail.com> Date: Tue, 4 Jun 2024 18:00:23 -0400 Subject: [PATCH] Silence sun.misc.unsafe warnings with separate compilation Signed-off-by: Andrew Helwer <2n8rn1w1f@mozmail.com> --- tlatools/org.lamport.tlatools/customBuild.xml | 51 +++++++++++++++++-- 1 file changed, 46 insertions(+), 5 deletions(-) diff --git a/tlatools/org.lamport.tlatools/customBuild.xml b/tlatools/org.lamport.tlatools/customBuild.xml index 026aa64ae6..6688a9fc55 100644 --- a/tlatools/org.lamport.tlatools/customBuild.xml +++ b/tlatools/org.lamport.tlatools/customBuild.xml @@ -146,14 +146,50 @@ ================================================================== = This code uses sun.misc.Unsafe for manual memory management in = = the class src/tlc2/tool/fp/LongArray.java. This unsafe API is = -= marked as internal meaning it can change without warning. Java = -= emits a lot of warnings about this and makes it essentially = -= impossible to silence them, so just ignore them. The unsafe = -= API is in the process of being standardized in newer versions = -= of Java and we will switch to that as soon as possible. = += marked as internal meaning it can change without warning. = += Ordinarily this would result in a lot of compiler warnings, = += but to reduce noise these have been explicitly silenced. If = += the build fails after upgrading Java, it might be because this = += API has been changed. = ================================================================== + + + + + + + + + + + + + + + + + + + + + + + +