Roll back to use the simple Class constructor to support class lock. Fix a bug for...
authorjzhou <jzhou>
Fri, 4 Feb 2011 00:47:47 +0000 (00:47 +0000)
committerjzhou <jzhou>
Fri, 4 Feb 2011 00:47:47 +0000 (00:47 +0000)
commit404514d8aa66ea997fa38d6d21baf22db9f133e5
treeff0f591a42f869034fe0e3c56dccbe4cf29f81bb
parente21bec856fd5866d1d56d9c98aed8b56f24c90ad
Roll back to use the simple Class constructor to support class lock.  Fix a bug for static field initialization: the initialization of a static field was invoked each time the field is used. The initialization of a static field should be invoked only once and be invoked before it is used. To simplify the implementation, we create a static block to contain the initializations of all the static fields of a class and invoke this static block at the beginning of the main method.
Robust/src/ClassLibrary/Character.java
Robust/src/IR/Flat/BuildCode.java
Robust/src/IR/Flat/BuildCodeMGC.java
Robust/src/IR/Flat/BuildFlat.java
Robust/src/IR/Tree/BuildIR.java
Robust/src/IR/Tree/SemanticCheck.java
Robust/src/Parse/java14.cup
Robust/src/Tests/MGC/SynchonizedTest.java