< prev index next >
src/java.base/share/classes/jdk/internal/misc/JavaLangAccess.java
Print this page
@@ -308,20 +308,32 @@
byte[] getBytesUTF8NoRepl(String s);
//Panama
/**
- * Panama: find a native library.
+ * Panama: load a native library.
* @param lookup the lookup object.
* @param libname the name of the library.
* @return the found library
* @throws UnsatisfiedLinkError if either the libname argument
* contains a file path, the native library is not statically
* linked with the VM, or the library cannot be mapped to a
* native library image by the host system.
*/
- Library findLibrary(MethodHandles.Lookup lookup, String libname);
+ Library loadLibrary(MethodHandles.Lookup lookup, String libname);
+
+ /**
+ * Panama: load a native library.
+ * @param lookup the lookup object.
+ * @param libname the absolute path of the library.
+ * @return the loaded library
+ * @throws UnsatisfiedLinkError if either the libname argument is not an
+ * absolute path name, the native library is not statically
+ * linked with the VM, or the library cannot be mapped to
+ * a native library image by the host system.
+ */
+ Library load(MethodHandles.Lookup lookup, String libname);
/**
* Panama: lookup default library
* @return defauult library.
*/
< prev index next >