Fri, 02 Sep 2011 22:00:49 -0700
7016881: JSR 292: JDI: sun.jvm.hotspot.utilities.AssertionFailure: index out of bounds
Reviewed-by: kvn, twisti
agent/src/share/classes/sun/jvm/hotspot/interpreter/BytecodeLoadConstant.java | file | annotate | diff | comparison | revisions |
1.1 --- a/agent/src/share/classes/sun/jvm/hotspot/interpreter/BytecodeLoadConstant.java Fri Sep 02 12:13:33 2011 -0700 1.2 +++ b/agent/src/share/classes/sun/jvm/hotspot/interpreter/BytecodeLoadConstant.java Fri Sep 02 22:00:49 2011 -0700 1.3 @@ -90,7 +90,7 @@ 1.4 jcode == Bytecodes._ldc2_w; 1.5 if (! codeOk) return false; 1.6 1.7 - ConstantTag ctag = method().getConstants().getTagAt(rawIndex()); 1.8 + ConstantTag ctag = method().getConstants().getTagAt(poolIndex()); 1.9 if (jcode == Bytecodes._ldc2_w) { 1.10 // has to be double or long 1.11 return (ctag.isDouble() || ctag.isLong()) ? true: false;