kohiro / gwt-ent

Automatically exported from code.google.com/p/gwt-ent
0 stars 0 forks source link

If a class name starts or ends with "Child" the superclass on the class type is null #16

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a reflectable class named "ChildSomething"
2. call
TypeOracle.Instance.getClassType(ChildSomething.class).getSuperclass() and
confirm result is null

What is the expected output? What do you see instead?
The call should return the ChildSomething superclass, either the Object
class type if it doesn't extend anything explicitly, or the parent class type.

What version of the product are you using? On what operating system?
I'm using gwt-ent 0.7 on Windows XP Professional Service Pack 3

Please provide any additional information below.

Original issue reported on code.google.com by EricKu...@gmail.com on 8 Oct 2009 at 3:39

GoogleCodeExporter commented 9 years ago
This only happens when the sourceClasses attribute on the Reflectable 
annotation is
false. It seems that sometimes in that case, the child class still has a 
reference to
its superclass, except for the situation described above.

Original comment by EricKu...@gmail.com on 8 Oct 2009 at 5:03