From 5e59a9592baff0979ba2c61963c7e63303dc1bb4 Mon Sep 17 00:00:00 2001 From: never Date: Fri, 2 Sep 2011 22:00:49 -0700 Subject: [PATCH] 7016881: JSR 292: JDI: sun.jvm.hotspot.utilities.AssertionFailure: index out of bounds Reviewed-by: kvn, twisti --- .../sun/jvm/hotspot/interpreter/BytecodeLoadConstant.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/src/share/classes/sun/jvm/hotspot/interpreter/BytecodeLoadConstant.java b/agent/src/share/classes/sun/jvm/hotspot/interpreter/BytecodeLoadConstant.java index 051f8556c..2c27e3dbc 100644 --- a/agent/src/share/classes/sun/jvm/hotspot/interpreter/BytecodeLoadConstant.java +++ b/agent/src/share/classes/sun/jvm/hotspot/interpreter/BytecodeLoadConstant.java @@ -90,7 +90,7 @@ public class BytecodeLoadConstant extends Bytecode { jcode == Bytecodes._ldc2_w; if (! codeOk) return false; - ConstantTag ctag = method().getConstants().getTagAt(rawIndex()); + ConstantTag ctag = method().getConstants().getTagAt(poolIndex()); if (jcode == Bytecodes._ldc2_w) { // has to be double or long return (ctag.isDouble() || ctag.isLong()) ? true: false; -- GitLab