From 6b262c465821125538fa8039af1fdf16ce6f00dc Mon Sep 17 00:00:00 2001 From: jochen Date: Fri, 9 Apr 1999 07:58:33 +0000 Subject: [PATCH] typecode is final getTypeClass git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@521 379699f6-c40d-0410-875b-85095c16579e --- jode/jode/type/ArrayType.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/jode/jode/type/ArrayType.java b/jode/jode/type/ArrayType.java index 2567438..324b271 100644 --- a/jode/jode/type/ArrayType.java +++ b/jode/jode/type/ArrayType.java @@ -39,7 +39,6 @@ public class ArrayType extends ReferenceType { public ArrayType(Type elementType) { super(TC_ARRAY); - typecode = TC_ARRAY; this.elementType = elementType; } @@ -222,6 +221,10 @@ public class ArrayType extends ReferenceType { return "["+elementType.getTypeSignature(); } + public Class getTypeClass() throws ClassNotFoundException { + return Class.forName("["+elementType.getTypeSignature()); + } + public String toString() { return elementType.toString()+"[]"; }