graal icon indicating copy to clipboard operation
graal copied to clipboard

[GR-57624] Fix Locale NPE in JDK 24+10 and better

Open jerboaa opened this issue 1 year ago • 5 comments

The JDK's StaticProperty class uses a default of the empty string for the java.locale.useOldISOCodes static property. Ensure to also use the empty string as the default in substratevm avoiding the NullPointerException.

Closes: #9526

Testing:

  • Passes the provided reproducer in #9526. Throws NPE before.
  • Quarkus tests from https://github.com/graalvm/mandrel/issues/778 which triggered this investigation.

jerboaa avatar Aug 19 '24 14:08 jerboaa

@fniephaus Is this something the Oracle GraalVM team is aware of? Thanks!

jerboaa avatar Aug 19 '24 14:08 jerboaa

Hi @jerboaa, I don't think we are aware of this, but let me change that ;) Thanks for the PR and the ping!

fniephaus avatar Aug 22 '24 15:08 fniephaus

@fniephaus Hi! Any update on this?

jerboaa avatar Aug 27 '24 08:08 jerboaa

Thanks for the reminder, @jerboaa. I'm working on integrating this.

fniephaus avatar Aug 27 '24 09:08 fniephaus

Thank you!

jerboaa avatar Aug 27 '24 10:08 jerboaa