Details
Description
A NullPointerException is raised when testing equality between two constructors. The field "returnType" is null for a constructor which lead to the exception at line 64 in JavaMethod.
A workaround is to test if the returnType of the JavaMethod instance is null before testing return types.
if(getReturns() != null) { if (!m.getReturns().equals(getReturns())) return false; }
I also noticed that the JavaMethodTest unit test only focuses on method testing and not on constructor testing.