changeset 5484:3730065d89b9

7190416: JSR 292: typo in InvokerBytecodeGenerator.getConstantPoolSize Reviewed-by: jrose
author twisti
date Thu, 09 Aug 2012 15:03:28 -0700
parents 7c14a2225485
children 14b4f7fcc9a2
files src/share/classes/java/lang/invoke/InvokerBytecodeGenerator.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/lang/invoke/InvokerBytecodeGenerator.java	Tue Aug 07 14:31:52 2012 -0700
+++ b/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);
     }
 
     /**