]
Shigeru Chiba resolved JASSIST-56.
----------------------------------
Resolution: Done
NPE on Annotation.equals()
--------------------------
Key: JASSIST-56
URL:
http://jira.jboss.com/jira/browse/JASSIST-56
Project: Javassist
Issue Type: Bug
Reporter: Guy Korland
Assigned To: Shigeru Chiba
The marked line might throw NPE if both members==null and other.members==null
if (members == null && other.members != null)
return false;
if (members != null && other.members == null)
return false;
--> return members.equals(other.members);
The fix might be:
return members == other.members || members.equals(other.members);
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: