phax / jcodemodel

A heavily extended fork of the com.sun.codemodel (from 2013/09)
Other
93 stars 34 forks source link

JDefinedClass.getMethod does not work when a parameter is JDirectClass #58

Closed fbaro closed 6 years ago

fbaro commented 6 years ago

The JDefinedClass.getMethod() method works by searching a method with matching name and parameter types. As JDirectClass does not implement the equals method, if getMethod() is provided with a JDirectClass freshly obtained from JCodeModel.ref(), it will not return the required method.

phax commented 6 years ago

Thanks for this. I added hashCode