7016881: JSR 292: JDI: sun.jvm.hotspot.utilities.AssertionFailure: index out of bounds

Fri, 02 Sep 2011 22:00:49 -0700

author
never
date
Fri, 02 Sep 2011 22:00:49 -0700
changeset 3104
2090c623107e
parent 3103
2f9b79ddb05c
child 3106
7ffacbb338d4

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;

mercurial