src/share/classes/java/lang/ClassLoader.java

Print this page
rev 10452 : imported patch lang-Typos

*** 203,213 **** static { synchronized (loaderTypes) { loaderTypes.add(ClassLoader.class); } } /** ! * Registers the given class loader type as parallel capabale. * Returns {@code true} is successfully registered; {@code false} if * loader's super class is not registered. */ static boolean register(Class<? extends ClassLoader> c) { synchronized (loaderTypes) { --- 203,213 ---- static { synchronized (loaderTypes) { loaderTypes.add(ClassLoader.class); } } /** ! * Registers the given class loader type as parallel capable. * Returns {@code true} is successfully registered; {@code false} if * loader's super class is not registered. */ static boolean register(Class<? extends ClassLoader> c) { synchronized (loaderTypes) {
*** 830,840 **** ProtectionDomain protectionDomain) throws ClassFormatError { int len = b.remaining(); ! // Use byte[] if not a direct ByteBufer: if (!b.isDirect()) { if (b.hasArray()) { return defineClass(name, b.array(), b.position() + b.arrayOffset(), len, protectionDomain); --- 830,840 ---- ProtectionDomain protectionDomain) throws ClassFormatError { int len = b.remaining(); ! // Use byte[] if not a direct ByteBuffer: if (!b.isDirect()) { if (b.hasArray()) { return defineClass(name, b.array(), b.position() + b.arrayOffset(), len, protectionDomain);