From 9894638f6c23b808041e395d4e0788d999295295 Mon Sep 17 00:00:00 2001 From: jochen Date: Wed, 2 Jun 1999 20:22:12 +0000 Subject: [PATCH] bug fix git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@826 379699f6-c40d-0410-875b-85095c16579e --- jode/jode/jvm/SimpleRuntimeEnvironment.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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");