Use ClassRegistry::getClass instead of ClassRegistry::loadClass to fix array classes loading

This commit is contained in:
Marco Castelluccio 2015-03-04 01:37:39 +01:00
Родитель 1e95edc732
Коммит b7eb554230
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -341,7 +341,7 @@ module J2ME {
r = this.resolved[i] = s.readBytes(s.readU2()); r = this.resolved[i] = s.readBytes(s.readU2());
break; break;
case TAGS.CONSTANT_Class: 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; break;
case TAGS.CONSTANT_Fieldref: case TAGS.CONSTANT_Fieldref:
case TAGS.CONSTANT_Methodref: case TAGS.CONSTANT_Methodref: