- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
lookup(String). A symbol lookup can be used to lookup a symbol in a loaded library. Clients can obtain a loader lookup, which can be used to search symbols in libraries loaded by the current classloader (e.g. using
System.loadLibrary(String)). Alternatively, clients can obtain a platform-dependent lookup, to search symbols in the standard C library.
Unless otherwise specified, passing a
null argument, or an array argument containing one or more
elements to a method in this class causes a
NullPointerException to be thrown.
Method SummaryModifier and TypeMethodDescription
static SymbolLookupLooks up a symbol with given name in this lookup.
lookupLooks up a symbol with given name in this lookup.
name- the symbol name.
- the memory address associated with the symbol (if any).
loaderLookupstatic SymbolLookup loaderLookup()Obtains a symbol lookup suitable to find symbols in native libraries associated with the caller's classloader (that is, libraries loaded using
This method is restricted. Restricted methods are unsafe, and, if used incorrectly, their use might crash the JVM or, worse, silently result in memory corruption. Thus, clients should refrain from depending on restricted methods, and use safe and supported functionalities, where possible.
- a symbol lookup suitable to find symbols in libraries loaded by the caller's classloader.
IllegalCallerException- if access to this method occurs from a module
Mand the command line option
--enable-native-accessis either absent, or does not mention the module name
Mis an unnamed module.