JamesLuoau / gwt-ent

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

getSuperclass() only works if @Reflectable(superClasses=true)? #31

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.  Use classes such as:
@Reflectable
public class TestReflection {}

@Reflectable 
public class TestExtendedReflection extends TestReflection {}
2.  Do 
TypeOracle.Instance.getType(TestExtendedReflection.class).getSuperclass();
3.  Returns null.

What is the expected output? What do you see instead?
TestReflection's type.  Null.

What version of the product are you using? On what operating system?

Please provide any additional information below.
Can only get superclass if subclass says @Reflectable(superClasses=true).  I 
can't see any difference in the generated file between the generated 
TypeOracle_Vistor.java file, so it must be something in the code that gets the 
type.  I can get both types via TypeOracle.Instance.getType.

Original issue reported on code.google.com by kmj7...@gmail.com on 7 Sep 2010 at 4:31

GoogleCodeExporter commented 9 years ago
Thanks for reporting.

I created and committed this test case, it's working in my version, we changed 
the whole reflection restructure and it's more make sense. I think may the 
change fixed this bug.

If you are not using validation, you can check out the new jar file from 
here:http://code.google.com/p/gwt-ent/source/browse/#svn/trunk/gwtent/target

Thanks

Original comment by JamesLuo...@gmail.com on 7 Sep 2010 at 11:16