That was not everything that breaks. Here is another test case:
public void testMethodsOnConstructor(){
JavaDocBuilder javaDocBuilder = new JavaDocBuilder();
javaDocBuilder.addSource(new StringReader("class A{ public A(testB.B b){}}"));
JavaClass a = javaDocBuilder.getClassByName("A");
JavaMethod[] methods = a.getMethods();
JavaMethod jm = methods[0];
System.out.println(jm);
jm.getReturnType();
jm.getParameterTypes();
}
The two last calls still fail with NPE's. Of course, getReturnType on a constructor does not make total sense...
Fixed in rev. 737