src/share/classes/java/lang/Runtime.java

Print this page

        

*** 778,788 **** */ public void load(String filename) { load0(System.getCallerClass(), filename); } ! synchronized void load0(Class fromClass, String filename) { SecurityManager security = System.getSecurityManager(); if (security != null) { security.checkLink(filename); } if (!(new File(filename).isAbsolute())) { --- 778,788 ---- */ public void load(String filename) { load0(System.getCallerClass(), filename); } ! synchronized void load0(Class<?> fromClass, String filename) { SecurityManager security = System.getSecurityManager(); if (security != null) { security.checkLink(filename); } if (!(new File(filename).isAbsolute())) {
*** 831,841 **** */ public void loadLibrary(String libname) { loadLibrary0(System.getCallerClass(), libname); } ! synchronized void loadLibrary0(Class fromClass, String libname) { SecurityManager security = System.getSecurityManager(); if (security != null) { security.checkLink(libname); } if (libname.indexOf((int)File.separatorChar) != -1) { --- 831,841 ---- */ public void loadLibrary(String libname) { loadLibrary0(System.getCallerClass(), libname); } ! synchronized void loadLibrary0(Class<?> fromClass, String libname) { SecurityManager security = System.getSecurityManager(); if (security != null) { security.checkLink(libname); } if (libname.indexOf((int)File.separatorChar) != -1) {