This is the mail archive of the kawa@sourceware.org mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Parameterizing on incomplete types


On 12/01/2011 01:21 PM, Jamison Hope wrote:
It probably makes sense to generate the bridge methods at the same
time as we check for missing implementations.

Where are they generated now?

My point is: they're not. That needs to be implemented.


Is that what the recursive call to
ClassExp#getImplMethods() is doing?

No, that just searches for possible implementation methods. This is done for each abstract method.

The key parts of the logic is:

            methods = compiledType.getAbstractMethods();
            nmethods = methods.length;
        ...
	for (int i = 0;  i < nmethods;  i++)
	  {
	    Method meth = methods[i];
            ...
            Vector vec = new Vector();
	    getImplMethods(compiledType, mname, ptypes, vec);
            if (vec.size() != 1)
	        error(...)

This logic needs to be made aware of parameterized types.
--
	--Per Bothner
per@bothner.com   http://per.bothner.com/


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