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

Print this page
rev 10452 : imported patch lang-Typos

@@ -203,11 +203,11 @@
         static {
             synchronized (loaderTypes) { loaderTypes.add(ClassLoader.class); }
         }
 
         /**
-         * Registers the given class loader type as parallel capabale.
+         * 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,11 +830,11 @@
                                          ProtectionDomain protectionDomain)
         throws ClassFormatError
     {
         int len = b.remaining();
 
-        // Use byte[] if not a direct ByteBufer:
+        // Use byte[] if not a direct ByteBuffer:
         if (!b.isDirect()) {
             if (b.hasArray()) {
                 return defineClass(name, b.array(),
                                    b.position() + b.arrayOffset(), len,
                                    protectionDomain);