Mercurial > hg > graal-compiler
diff agent/src/share/classes/sun/jvm/hotspot/interpreter/BytecodeWideable.java @ 3838:6a991dcb52bb
7012081: JSR 292: SA-JDI can't read MH/MT/Indy ConstantPool entries
Reviewed-by: kvn, twisti, jrose
author | never |
---|---|
date | Thu, 21 Jul 2011 08:38:25 -0700 |
parents | c18cbe5936b8 |
children |
line wrap: on
line diff
--- a/agent/src/share/classes/sun/jvm/hotspot/interpreter/BytecodeWideable.java Wed Jul 20 18:04:17 2011 -0700 +++ b/agent/src/share/classes/sun/jvm/hotspot/interpreter/BytecodeWideable.java Thu Jul 21 08:38:25 2011 -0700 @@ -38,7 +38,6 @@ // the local variable index public int getLocalVarIndex() { - return (isWide()) ? (int) (0xFFFF & javaShortAt(1)) - : (int) (0xFF & javaByteAt(1)); + return (isWide()) ? getIndexU2(code(), true) : getIndexU1(); } }