Oops. It seems that in my rush to get this benchmark working, I have been somewhat careless. SPECjvm does not call getConstructor. Rather, it calls Class.newInstance, which calls getConstructor, and that's Classpath's fault after all.
The reference implementation of Class.java implements getConstructor by calling newInstance, where it seems it should be calling getDeclaredConstructor instead. Does that sound right? -- Patrick Doyle [EMAIL PROTECTED] On 17 Jan 2002, Tom Tromey wrote: > >>>>> "Patrick" == Patrick Doyle <[EMAIL PROTECTED]> writes: > > Patrick> What is Class.getConstructor supposed to do when the matching > Patrick> constructor is not public? > > I think it should fail with NoSuchMethodException. > I base this on the description of getConstructor here: > > >http://java.sun.com/j2se/1.3/docs/api/java/lang/Class.html#getConstructor(java.lang.Class[]) > > Patrick> So what going on here? > > I think you've found a bug in SPECjvm. > Try reporting it to them and see what they say. _______________________________________________ Classpath mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/classpath

