You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gary Gregory (JIRA)" <ji...@apache.org> on 2019/02/11 15:24:00 UTC
[jira] [Updated] (BCEL-297) Possible NPE in override implementation
of Object.equals
[ 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)