From b7eb554230bd14a38cfb5c9b2a2bb3818b7f99ba Mon Sep 17 00:00:00 2001 From: Marco Castelluccio Date: Wed, 4 Mar 2015 01:37:39 +0100 Subject: [PATCH] Use ClassRegistry::getClass instead of ClassRegistry::loadClass to fix array classes loading --- parser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parser.ts b/parser.ts index ee9000cd..f8d92d4a 100644 --- a/parser.ts +++ b/parser.ts @@ -341,7 +341,7 @@ module J2ME { r = this.resolved[i] = s.readBytes(s.readU2()); break; case TAGS.CONSTANT_Class: - r = this.resolved[i] = CLASSES.loadClass(utf8ToString(this.resolve(s.readU2(), TAGS.CONSTANT_Utf8))); + r = this.resolved[i] = CLASSES.getClass(utf8ToString(this.resolve(s.readU2(), TAGS.CONSTANT_Utf8))); break; case TAGS.CONSTANT_Fieldref: case TAGS.CONSTANT_Methodref: