From 9464c569b1fa37a158be21f622a11f0867defa2a Mon Sep 17 00:00:00 2001 From: Andreas Gal Date: Thu, 17 Jul 2014 01:45:28 -0700 Subject: [PATCH] ensure superclasses are all initialized --- classes.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/classes.js b/classes.js index 6ed74c3b..7e04525b 100644 --- a/classes.js +++ b/classes.js @@ -78,6 +78,8 @@ Classes.prototype.getEntryPoint = function(classInfo) { Classes.prototype.initClass = function(caller, classInfo) { if (classInfo.staticFields) return; + if (classInfo.superClassName) + this.getClass(caller, classInfo.superClassName, true); classInfo.staticFields = {}; var clinit = this.getMethod(caller, classInfo, "", "()V", true, false); if (clinit)