From 6fcbbe316bcc8aa3e484a4a75907f87306798820 Mon Sep 17 00:00:00 2001 From: Michael Bebenita Date: Fri, 30 Jan 2015 23:31:03 -0800 Subject: [PATCH] Enable final class check. --- jit/analyze.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jit/analyze.ts b/jit/analyze.ts index e575672b..a6131d28 100644 --- a/jit/analyze.ts +++ b/jit/analyze.ts @@ -87,6 +87,9 @@ module J2ME { } export function isFinalMethod(methodInfo: MethodInfo): boolean { + if (isFinalClass(methodInfo.classInfo)) { + return true; + } // XXX Determine whether we can start using the code in this function. return false; var result = methodInfo.isFinal;