Bug fix of inner class: only add LIVE local variables that are referred to in an...
authorjzhou <jzhou>
Tue, 15 Nov 2011 20:10:26 +0000 (20:10 +0000)
committerjzhou <jzhou>
Tue, 15 Nov 2011 20:10:26 +0000 (20:10 +0000)
commit90ea284f673d349505695d99e3406be4d59a9275
tree0255cf874b7e4101af1964359726367755c15ab8
parentd56ced93c269c5840dc396bc4d9faa02ffb3280b
Bug fix of inner class: only add LIVE local variables that are referred to in an anonymous inner class into the inner class' fields. Previously we add all the local variables into an anonymous inner class which could be buggy. Also add a super(...) invocation into the anonymous constructor of an anonymous inner class according to the Java spec.
Robust/src/IR/ClassDescriptor.java
Robust/src/IR/Tree/BuildIR.java
Robust/src/IR/Tree/SemanticCheck.java
Robust/src/Tests/inner.java