diff --git a/jode/jode/jvm/SimpleRuntimeEnvironment.java b/jode/jode/jvm/SimpleRuntimeEnvironment.java index 82348f9..891a7cb 100644 --- a/jode/jode/jvm/SimpleRuntimeEnvironment.java +++ b/jode/jode/jvm/SimpleRuntimeEnvironment.java @@ -188,7 +188,9 @@ public class SimpleRuntimeEnvironment implements RuntimeEnvironment { throws InterpreterException, NegativeArraySizeException { Class clazz; try { - clazz = Class.forName(type); + /* get the base class (strip leading "[") */ + clazz = Type.tType(type.substring(dimensions.length)) + .getTypeClass(); } catch (ClassNotFoundException ex) { throw new InterpreterException ("Class "+ex.getMessage()+" not found");