First, thanks for the excellent library!
I am using it for reflection and have had much success so far. However
I was wondering if there is any way to call an overloaded base class
method, skipping the sub class method. For example:
class A {
void method() { GWT.log("method A"); }
}
class B extends A {
void method() { GWT.log("method B"); }
}
B bInstance = new B();
ClassType aType = TypeOracle.Instance.getClassType(A.class);
aType.invoke(bInstance, "method", null);
Since the method is invoked on the type A, I would like the A method()
to be called, printing out "method A". However, currently it calls
method B through dynamic dispatching, and "method B" is printed
instead. This sort of sub class override skipping works with real java
reflection. Is there a way to explicitly call the base class method
with gwtent?
Thanks,
Nick
--
You received this message because you are subscribed to the Google Groups "GWT-Ent Developer Forum" group.
To post to this group, send email to gwt...@googlegroups.com.
To unsubscribe from this group, send email to gwt-ent+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gwt-ent?hl=en.