This is the mail archive of the
java-discuss@sourceware.cygnus.com
mailing list for the Java project.
Re: bug in java::lang::Class::getDeclaredMethods
- To: Per Bothner <per at bothner dot com>
- Subject: Re: bug in java::lang::Class::getDeclaredMethods
- From: Tom Tromey <tromey at cygnus dot com>
- Date: Tue, 21 Dec 1999 17:18:48 -0800 (PST)
- Cc: java-discuss at sourceware dot cygnus dot com
- References: <m2d7rzsrp7.fsf@magnus.bothner.com>
Per> Sure enough, Class::getDeclaredMethod is setting the offset to
Per> the method's offset in the *result* array, which makes no sense.
Per> Instead, the offset should be the offset of the corresponding
Per> _Jv_Method in the declaringClass's `methods' array:
I've incorporated this into my working tree.
I hope to commit it in the next couple days.
Per> The problem is it looks like the fix causes gij to crash *earlier*
Per> than it did without the fix! Either my fix is wrong, or there is
Per> some *other* bug which depends on this bug in getDeclaredMethods!
Per> Any ideas?
Offhand, no.
I'm actively working on reflection right now, so I might be looking at
this soon. Right now I'm working on Method.invoke, which involves
getting Class.getMethod and friends working.
Tom