menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Programming News

>

Quality Ou...
source image

Inside

3w

read

175

img
dot

Quality Outreach Heads-up - New Null Checks in Inner Class Constructors

  • 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.

Read Full Article

like

10 Likes

For uninterrupted reading, download the app