commit | dc5ffb8e544e533a269960ddb78e38fb491d8ab6 | [log] [tgz] |
---|---|---|
author | Andy McFadden <fadden@android.com> | Thu Apr 30 17:47:50 2009 -0700 |
committer | Andy McFadden <fadden@android.com> | Fri May 01 12:15:15 2009 -0700 |
tree | b34fb1092a18df0321ba9c2f76fdac02555bb493 | |
parent | 2c98747b403970ef4b3352e271633f93935b9825 [diff] |
Corrected behavior of Constructor.newInstance on abstract classes. The VM now throws an exception when somebody tries to create an instance of an abstract class through a Constructor object. It also ensures that the class is initialized before attempting to create an instance. This change adds some Constructor tests to the 042-new-instance VM test. (It also pulls in some additions that were made to the 042 test back in March, on the p4 master branch.)