Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jdt-core-dev] looking for a way to convert ITypeBinding(not-primary type) to IType

Tim,
here's an example that shows a problem in your Utility class:
class A {

public void m() {}

public void m1() {}

void g() {

f((A)this);

}

A f(A a){

f(a).m1();

return a;

}

}



it fails to lookup the A::f(A) method correctly (finds a non-existent method).

i did not debug to find out what the reason is.



have a look at our (jdt ui) Binding2JavaModel class for a method that does handles that case.

regards

a.




Back to the top