This commit is contained in:
Andreas Gal 2014-07-30 17:40:39 -07:00
Родитель 20529980c6
Коммит f10491aa71
3 изменённых файлов: 15 добавлений и 3 удалений

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

@ -56,7 +56,8 @@ var ClassInfo = function(classBytes) {
if (a.info.type === ATTRIBUTE_TYPES.InnerClasses) {
a.info.classes.forEach(function(c) {
classes.push(cp[cp[c.inner_class_info_index].name_index].bytes);
classes.push(cp[cp[c.outer_class_info_index].name_index].bytes);
if (c.outer_class_info_index)
classes.push(cp[cp[c.outer_class_info_index].name_index].bytes);
});
}
});

13
midp.js
Просмотреть файл

@ -325,6 +325,10 @@ Native["com/sun/midp/main/MIDletSuiteUtils.getAmsIsolateId.()I"] = function(ctx,
stack.push(0);
}
Native["com/sun/midp/main/MIDletSuiteUtils.isAmsIsolate.()Z"] = function(ctx, stack) {
stack.push(1);
}
Native["com/sun/midp/main/MIDletSuiteUtils.vmBeginStartUp.(I)V"] = function(ctx, stack) {
var midletIsolateId = stack.pop();
}
@ -337,9 +341,16 @@ Native["com/sun/midp/main/Configuration.getProperty0.(Ljava/lang/String;)Ljava/l
value = CLASSES.newString("web.pks");
break;
default:
console.log("UNKNOWN PROPERTY: " + util.fromJavaString(key));
console.log("UNKNOWN PROPERTY (com/sun/midp/main/Configuration): " + util.fromJavaString(key));
value = null;
break;
}
stack.push(value);
}
Native["com/sun/midp/events/EventQueue.getNativeEventQueueHandle.()I"] = function(ctx, stack) {
stack.push(0);
}
Native["com/sun/midp/events/EventQueue.resetNativeEventQueue.()V"] = function(ctx, stack) {
}

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

@ -68,7 +68,7 @@ Native["java/lang/System.getProperty0.(Ljava/lang/String;)Ljava/lang/String;"] =
value = CLASSES.newString("UTF-8");
break;
default:
console.log("UNKNOWN PROPERTY: " + util.fromJavaString(key));
console.log("UNKNOWN PROPERTY (java/lang/System): " + util.fromJavaString(key));
value = null;
break;
}