diff --git a/src/share/classes/java/lang/invoke/InvokerBytecodeGenerator.java b/src/share/classes/java/lang/invoke/InvokerBytecodeGenerator.java index 25d15e8253bd252cb4ffaa84c492f4d4607d98ca..632ae583a201f94c6b7472255595ea769e450886 100644 --- a/src/share/classes/java/lang/invoke/InvokerBytecodeGenerator.java +++ b/src/share/classes/java/lang/invoke/InvokerBytecodeGenerator.java @@ -230,7 +230,7 @@ class InvokerBytecodeGenerator { // 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); } /**