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

29 views
Skip to first unread message

Adrian Wenz

unread,
Jan 26, 2026, 1:54:20 AMJan 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

Cecily Hunt

unread,
Feb 9, 2026, 5:22:18 PM (12 days ago) Feb 9
to Closure Compiler Discuss
Reply all
Reply to author
Forward
0 new messages