equal
deleted
inserted
replaced
226 * @throws SecurityException if a security manager exists and its |
226 * @throws SecurityException if a security manager exists and its |
227 * {@link SecurityManager#checkCreateClassLoader()} method doesn't |
227 * {@link SecurityManager#checkCreateClassLoader()} method doesn't |
228 * allow creation of a class loader. |
228 * allow creation of a class loader. |
229 * |
229 * |
230 * @since 9 |
230 * @since 9 |
|
231 * @spec JPMS |
231 */ |
232 */ |
232 public URLClassLoader(String name, |
233 public URLClassLoader(String name, |
233 URL[] urls, |
234 URL[] urls, |
234 ClassLoader parent) { |
235 ClassLoader parent) { |
235 super(name, parent); |
236 super(name, parent); |
260 * @throws SecurityException if a security manager exists and its |
261 * @throws SecurityException if a security manager exists and its |
261 * {@code checkCreateClassLoader} method doesn't allow |
262 * {@code checkCreateClassLoader} method doesn't allow |
262 * creation of a class loader. |
263 * creation of a class loader. |
263 * |
264 * |
264 * @since 9 |
265 * @since 9 |
|
266 * @spec JPMS |
265 */ |
267 */ |
266 public URLClassLoader(String name, URL[] urls, ClassLoader parent, |
268 public URLClassLoader(String name, URL[] urls, ClassLoader parent, |
267 URLStreamHandlerFactory factory) { |
269 URLStreamHandlerFactory factory) { |
268 super(name, parent); |
270 super(name, parent); |
269 // this is to make the stack depth consistent with 1.1 |
271 // this is to make the stack depth consistent with 1.1 |
556 * information |
558 * information |
557 * @param url the code source url for the package, or null if none |
559 * @param url the code source url for the package, or null if none |
558 * @throws IllegalArgumentException if the package name is |
560 * @throws IllegalArgumentException if the package name is |
559 * already defined by this class loader |
561 * already defined by this class loader |
560 * @return the newly defined {@code Package} object |
562 * @return the newly defined {@code Package} object |
|
563 * |
|
564 * @revised 9 |
|
565 * @spec JPMS |
561 */ |
566 */ |
562 protected Package definePackage(String name, Manifest man, URL url) { |
567 protected Package definePackage(String name, Manifest man, URL url) { |
563 String path = name.replace('.', '/').concat("/"); |
568 String path = name.replace('.', '/').concat("/"); |
564 String specTitle = null, specVersion = null, specVendor = null; |
569 String specTitle = null, specVersion = null, specVendor = null; |
565 String implTitle = null, implVersion = null, implVendor = null; |
570 String implTitle = null, implVersion = null, implVendor = null; |