On Wed, 15 Apr 2026 15:55:18 GMT, Chris Hegarty <[email protected]> wrote:

> `VectorMathLibrary.SVML.symbolName()` uses `String.format("%d", vlen)` 
> without specifying `Locale.ROOT` to construct native symbol names for 
> libjsvml.so lookup. Under locales that use non-ASCII digit systems (e.g. 
> `ar-SA` Arabic-Indic, `hi-IN` Devanagari), the `%d` format specifier produces 
> locale-specific digits, causing the FFI SymbolLookup to fail with 
> `NoSuchElementException`.
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

This pull request has now been integrated.

Changeset: 0ca24c0e
Author:    Chris Hegarty <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/0ca24c0e57b0dc40c98533ecbb37a9378bb7aa13
Stats:     56 lines in 2 files changed: 54 ins; 0 del; 2 mod

8382267: VectorMathLibrary uses locale-sensitive String.format to construct 
native symbol names

Reviewed-by: naoto, liach, vlivanov

-------------

PR: https://git.openjdk.org/jdk/pull/30748

Reply via email to