The OpenJDK Quality Group is promoting the testing of FOSS projects with OpenJDK builds.
Starting with JDK 25, when javac is targeting release 25 or higher, it will emit null checks for the enclosing instances in inner class constructors.
This behavioral change may lead to new NullPointerExceptions in code that uses core reflection, method handles, or direct bytecode invocation to pass null as enclosing instance.
To prevent the emission of additional null checks, a temporary workaround flag (-XDnullCheckOuterThis=(true|false)) can be used.