Charj: More pupInitMethod code.
authorJonathan Lifflander <jliffl2@illinois.edu>
Tue, 29 Jun 2010 17:11:40 +0000 (12:11 -0500)
committerJonathan Lifflander <jliffl2@illinois.edu>
Tue, 29 Jun 2010 17:11:40 +0000 (12:11 -0500)
src/langs/charj/src/charj/translator/CharjEmitter.g

index ea2ac121193caa2e5fff32f2e0e6479406632831..6d33e449bbabf1405a586415939c44d5f8370e04 100644 (file)
@@ -187,6 +187,7 @@ typeDeclaration
                 ident={$IDENT.text}, 
                 ext={$su.st}, 
                 csds={$csds},
+                needsPupInit={currentClass.generateInits() != null},
                 hasDefaultCtor={currentClass.hasDefaultConstructor})
         ->
     ;