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 { private Class<? extends Date> klass; }";
builder.addSource(new StringReader(source));
assertEquals("Bar", builder.getClassByName("Bar").getName());
}
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;
}