[
https://issues.apache.org/jira/browse/BCEL-297?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gary Gregory updated BCEL-297:
------------------------------
Summary: Possible NPE in override implementation of Object.equals (was:
Incorrect override implementation of Object.equals)
> Possible NPE in 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
(v7.6.3#76005)