Jeroen Frijters wrote: > Christian Thalinger wrote: > > Yesterday I investigated the dacapo xalan problem. It's about > > Class.newInstance. > > No, it's not. JikesRVM's Class.newInstance() is broken and ours is > correct. Sun also lets exceptions (even checked ones) escape from > Class.newInstace(). > > > The problem is around ResourceBundle.java:480, or better, at > > Class.java:1136. As you can see, the class contructor throws > > a NPE, but > > ResourceBundle.tryBundle does only catch IllegalAccessException, > > InstantiationException and ClassNotFoundException. > > The solution is probably for ResourceBundle.tryBundle() to catch more > exceptions than just these three.
I did some testing (with the attached code) and it appears that Sun catches Exception in tryBundle, so I propose we do the same. Regards, Jeroen
resBundle.java
Description: resBundle.java

