Details
Description
Qdox lacks the ability to parse Generics with wildcards. I added the following test to GenericsTest.java, and it fails.
public void testShouldUnderstandWildcard() {
String source = "" +
"public class Bar
";
builder.addSource(new StringReader(source));
assertEquals("Bar", builder.getClassByName("Bar").getName());
}
Activity
Mike Williams
made changes -
Field | Original Value | New Value |
---|---|---|
Affects Version/s | 1.7 [ 11160 ] | |
Affects Version/s | 1.6 [ 10814 ] | |
Affects Version/s | 1.5 [ 10650 ] | |
Fix Version/s | 1.6 [ 10814 ] |
Mike Williams
made changes -
Assignee | Mike Williams [ mdub ] |
Mike Williams
made changes -
Status | Open [ 1 ] | In Progress [ 3 ] |
Mike Williams
made changes -
Type | Bug [ 1 ] | Improvement [ 4 ] |
Mike Williams
made changes -
Resolution | Fixed [ 1 ] | |
Status | In Progress [ 3 ] | Resolved [ 5 ] |
more problems with generics:
I get ParseExceptions if I parse the following (legal) source snippets:
private Map<String, Object> m_env = new HashMap<String, Object>();
public <T extends Object> T retrieve(Class<T> klass, Object key)
{ return x; }