Closure Compiler / JDK-25: WARNING: A terminally deprecated method in sun.misc.Unsafe has been called

10 views
Skip to first unread message

Adrian Wenz

unread,
Jan 26, 2026, 1:54:20 AM (3 days ago) Jan 26
to Closure Compiler Discuss
When compiling '*.js' files with the latest (and previous) Closure Compiler (v20260121) together with the JDK-25 the following warnings are issued: 
'WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
WARNING: sun.misc.Unsafe::arrayBaseOffset has been called by com.google.javascript.jscomp.jarjar.com.google.protobuf.UnsafeUtil$MemoryAccessor (file:closure-compiler.jar)
WARNING: Please consider reporting this to the maintainers of class com.google.javascript.jscomp.jarjar.com.google.protobuf.UnsafeUtil$MemoryAccessor
WARNING: sun.misc.Unsafe::arrayBaseOffset will be removed in a future release'.


Could you please update the Closure Compiler accordingly to prevent these warnings to occur in future releases? 
Thanks. 
A. Wenz
Reply all
Reply to author
Forward
0 new messages