Bug 324707 - generic method ITDs having issue in complex hierarchy
Summary: generic method ITDs having issue in complex hierarchy
Status: NEW
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: DEVELOPMENT   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-07 21:06 EDT by Andrew Clement CLA
Modified: 2010-09-07 21:06 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Clement CLA 2010-09-07 21:06:47 EDT
I have a datastore project that shows a method as being ambiguous at the callsite when it clearly isnt.  The method is defined on an interface and then 'filled in' via an ITD.  The ITD uses two bound type variables, like this

public <R extends SomeType, N extends SomeOtherType) R SomeTarget.foo(R r, Class<N> cn) {

the ambiguous message is coming out because methods in the compiler are compared by object identity and we are creating two intertypemethodbindings that are for the same thing but vary by identity.  We need to ensure they don't vary so the compiler will be happy in its checks.