commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Roberts (JIRA)" <j...@apache.org>
Subject [jira] [Created] (BCEL-297) Incorrect override implementation of Object.equals
Date Tue, 10 Oct 2017 18:00:00 GMT
Mark Roberts created BCEL-297:
---------------------------------

             Summary: Incorrect override implementation of Object.equals
                 Key: BCEL-297
                 URL: https://issues.apache.org/jira/browse/BCEL-297
             Project: Commons BCEL
          Issue Type: Bug
            Reporter: Mark Roberts
            Priority: Minor


classfile/JavaClass.java: 
classfile/Field.java: 
classfile/Constant.java:  
classfile/Method.java:  
generic/FieldGen.java:   
generic/MethodGen.java:  

all define a bcelComparator that overrides Object.equals.  However, they will throw a null
pointer exception for myConstant.equals(null) instead of returning false.  This non-standard
behavior should either be corrected or documented.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message