зеркало из https://github.com/mozilla/pluotsorbet.git
Merge branch 'fix-is-final'
This commit is contained in:
Коммит
4fbe4b37ff
|
@ -203,7 +203,7 @@ module J2ME {
|
|||
this.isStatic = opts.isStatic;
|
||||
this.isSynchronized = opts.isSynchronized;
|
||||
this.isAbstract = opts.isAbstract;
|
||||
this.isFinal = opts.isAbstract;
|
||||
this.isFinal = opts.isFinal;
|
||||
this.state = MethodState.Cold;
|
||||
this.key = (this.isStatic ? "S." : "I.") + this.name + "." + this.signature;
|
||||
this.implKey = this.classInfo.className + "." + this.name + "." + this.signature;
|
||||
|
|
|
@ -88,8 +88,9 @@ module J2ME {
|
|||
}
|
||||
|
||||
export function isFinalMethod(methodInfo: MethodInfo): boolean {
|
||||
// XXX Determine whether we can start using the code in this function.
|
||||
return false;
|
||||
return methodInfo.isFinal;
|
||||
// XXX The following can only be used if every class in all jars is loaded.
|
||||
/*
|
||||
var result = methodInfo.isFinal;
|
||||
if (!result) {
|
||||
var classInfo = methodInfo.classInfo;
|
||||
|
@ -108,6 +109,7 @@ module J2ME {
|
|||
}
|
||||
}
|
||||
return result;
|
||||
*/
|
||||
}
|
||||
|
||||
export function gatherCallees(callees: MethodInfo [], classInfo: ClassInfo, methodInfo: MethodInfo) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче