equal
deleted
inserted
replaced
127 return null; |
127 return null; |
128 } |
128 } |
129 } |
129 } |
130 |
130 |
131 /** |
131 /** |
|
132 * Loads a library from the system path. |
|
133 */ |
|
134 public static void loadLibrary(String library) { |
|
135 if (System.getSecurityManager() == null) { |
|
136 SharedSecrets.getJavaLangAccess().loadLibrary(BootLoader.class, library); |
|
137 } else { |
|
138 AccessController.doPrivileged( |
|
139 new java.security.PrivilegedAction<>() { |
|
140 public Void run() { |
|
141 SharedSecrets.getJavaLangAccess().loadLibrary(BootLoader.class, library); |
|
142 return null; |
|
143 } |
|
144 }); |
|
145 } |
|
146 } |
|
147 |
|
148 /** |
132 * Returns a URL to a resource in a module defined to the boot loader. |
149 * Returns a URL to a resource in a module defined to the boot loader. |
133 */ |
150 */ |
134 public static URL findResource(String mn, String name) throws IOException { |
151 public static URL findResource(String mn, String name) throws IOException { |
135 return ClassLoaders.bootLoader().findResource(mn, name); |
152 return ClassLoaders.bootLoader().findResource(mn, name); |
136 } |
153 } |