JDK 27 Upgrade Triggers Lombok Unsafe Warnings: Root Cause and Clean Workaround
After upgrading to JDK 27, Lombok 1.18.48 emits four Unsafe warnings during compilation because it uses sun.misc.Unsafe to bypass module access checks; the Lombok team won't fix it to preserve zero-config usability, but adding --sun-misc-unsafe-memory-access=allow to the forked compiler JVM silences the warnings.
