[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 202_jess bug?
From: |
Patrick Doyle |
Subject: |
Re: 202_jess bug? |
Date: |
Thu, 17 Jan 2002 12:33:57 -0500 (EST) |
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
address@hidden
On 17 Jan 2002, Tom Tromey wrote:
> >>>>> "Patrick" == Patrick Doyle <address@hidden> 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.