--- old/agent/src/share/classes/sun/jvm/hotspot/interpreter/BytecodeWithCPIndex.java Fri Jul 8 15:22:36 2011 +++ new/agent/src/share/classes/sun/jvm/hotspot/interpreter/BytecodeWithCPIndex.java Fri Jul 8 15:22:36 2011 @@ -35,7 +35,7 @@ } // the constant pool index for this bytecode - public int index() { return 0xFFFF & javaShortAt(1); } + public int index() { return getIndexU2(code(), false); } public int getSecondaryIndex() { throw new IllegalArgumentException("must be invokedynamic");