< prev index next >

src/java.base/share/classes/jdk/internal/nicl/LibrariesHelper.java

Print this page

        

*** 132,142 **** * * @param lookup Lookup object of the caller. * @param name Name of the shared library to load. */ public static Library loadLibrary(Lookup lookup, String name) { ! return jlAccess.findLibrary(lookup, name); } // return the absolute path of the library of given name by searching // in the given array of paths. private static Optional<Path> findLibraryPath(Path[] paths, String libName) { --- 132,152 ---- * * @param lookup Lookup object of the caller. * @param name Name of the shared library to load. */ public static Library loadLibrary(Lookup lookup, String name) { ! return jlAccess.loadLibrary(lookup, name); ! } ! ! /** ! * Load the specified shared library. ! * ! * @param lookup Lookup object of the caller. ! * @param path Path of the shared library to load. ! */ ! public static Library load(Lookup lookup, String path) { ! return jlAccess.load(lookup, path); } // return the absolute path of the library of given name by searching // in the given array of paths. private static Optional<Path> findLibraryPath(Path[] paths, String libName) {
< prev index next >