https://bz.apache.org/bugzilla/show_bug.cgi?id=68493

Manak Bisht <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All

--- Comment #1 from Manak Bisht <[email protected]> ---
The java.lang.foreign package is part of the Foreign Function and Memory (FFM)
API which is still under preview in Java 22. This means that the API contract
is subject to change until the final release. 
This method is available as getUtf8String(long) in Java 21
(https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/foreign/MemorySegment.html#getUtf8String(long)),
but appears to have been renamed to getString(long) in Java 22
(https://download.java.net/java/early_access/jdk22/docs/api/java.base/java/lang/foreign/MemorySegment.html#getString(long)).
It seems to me that this
https://github.com/apache/tomcat/blame/87091cedc058204424a2b18368b4756564797e66/java/org/apache/tomcat/util/compat/Jre22Compat.java#L39
try-catch block should also catch the case of java.lang.NoSuchMethodException
when running with JDK21.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to