This is the mail archive of the java-discuss@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: _Jv_LookupInterfaceMethod


Per Bothner wrote:

> Great.  While these are not "explicit instructions", these may be enough
> to point you in the right direction.

> Here IFACE and IDX are tree-nodes that evaluate to the iface and method_idx
> parameters.  And here is where the next problem comes in:  Neither are
> available in build_invokeinterface, so you have to change the parameter
> list and *its* callers (in expr.c and parse.y).  Instead of passing
> the method name, I suggest passing the value of `method' (in both
> callers).  I *think* (i.e. I'm rusty and haven't tried it), then
> back in build_invokeinterface you just replace IFACE by DECL_TYPE (method).

Thanks for the help. The only part that I can't figure out at the moment is how
to get IFACE from method. "DECL_TYPE (method)" doesn't compile, and I havn't
able to find anything similar in the code.

regards

  [ bryce ]

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]