Use a more reliable way of creating ad-hoc class infos.

(cherry picked from commit 6d8e1eea11)
This commit is contained in:
Michael Bebenita 2015-01-20 11:39:35 -08:00 коммит произвёл Myk Melez
Родитель 330a32cf82
Коммит e461e69def
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -360,7 +360,7 @@ Native["java/lang/Class.newInstance.()Ljava/lang/Object;"] = function() {
name: "ClassNewInstanceSynthetic",
signature: "()Ljava/lang/Object;",
isStatic: true,
classInfo: Object.create(J2ME.ClassInfo.prototype, {
classInfo: J2ME.ClassInfo.createFromObject({
className: {value: className},
vmc: {value: {}},
vfc: {value: {}},
@ -552,7 +552,7 @@ Native["java/lang/Thread.start0.()V"] = function() {
var syntheticMethod = new MethodInfo({
name: "ThreadStart0Synthetic",
signature: "()V",
classInfo: Object.create(J2ME.ClassInfo.prototype, {
classInfo: J2ME.ClassInfo.createFromObject({
className: {value: this.klass.classInfo.className},
vmc: {value: {}},
vfc: {value: {}},