7190416: JSR 292: typo in InvokerBytecodeGenerator.getConstantPoolSize
authortwisti
Thu, 09 Aug 2012 15:03:28 -0700
changeset 13425 a8d96a0eda69
parent 13424 5de7e57cdc02
child 13426 3ec3f5d70eb1
7190416: JSR 292: typo in InvokerBytecodeGenerator.getConstantPoolSize Reviewed-by: jrose
jdk/src/share/classes/java/lang/invoke/InvokerBytecodeGenerator.java
--- a/jdk/src/share/classes/java/lang/invoke/InvokerBytecodeGenerator.java	Tue Aug 07 14:31:52 2012 -0700
+++ b/jdk/src/share/classes/java/lang/invoke/InvokerBytecodeGenerator.java	Thu Aug 09 15:03:28 2012 -0700
@@ -230,7 +230,7 @@
         // u2 minor_version;
         // u2 major_version;
         // u2 constant_pool_count;
-        return ((classFile[8] << 8) & 0xFF) | ( classFile[9] & 0xFF);
+        return ((classFile[8] & 0xFF) << 8) | (classFile[9] & 0xFF);
     }
 
     /**