This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: PING: Reflection doesn't work across interfaces
- From: Tom Tromey <tromey at redhat dot com>
- To: Bryce McKinlay <mckinlay at redhat dot com>
- Cc: Andrew Haley <aph at redhat dot com>, java-patches at gcc dot gnu dot org
- Date: 13 Apr 2004 14:10:56 -0600
- Subject: Re: PING: Reflection doesn't work across interfaces
- References: <16490.51964.646352.831451@cuddles.cambridge.redhat.com><407B1B9C.8040807@redhat.com>
- Reply-to: tromey at redhat dot com
>>>>> "Bryce" == Bryce McKinlay <mckinlay@redhat.com> writes:
Bryce> I think it would be better to just have the compiler put the interface
Bryce> method's index in the meth->index field here, rather than have the
Bryce> runtime do fixups on a hypothetical vtable offset. How does the patch
Bryce> below look? Otherwise, your patch looks fine to me. Obviously the
Bryce> invocation code has become a bit of a mess and could really use some
Bryce> refactoring, for example to clearly separate the lookup and argument
Bryce> prep/execution stages, but this looks ok for now.
This sounds reasonable to me. Andrew would have to approve the patch
though. Wouldn't we also need (or at least want) to fill in this
field at runtime for those interfaces laid out then?
Tom