Package java.lang.foreign
package java.lang.foreign
Stubs to compile against the Foreign Function & Memory API on Java 8. Not guaranteed to be stable API!
Only the types and methods Netty calls are declared, with the signatures of the real API, so the compiled call sites link against the JDK at runtime. The stubs are never loaded: code using them must only be loaded on Java versions that have the real API, for example by keeping it in a nested class that is only initialized after a version check.
-
Interfaces