Uploaded image for project: 'Commons BCEL'
  1. Commons BCEL
  2. BCEL-297

Possible NPE in override implementation of Object.equals

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 6.3.1
    • None
    • None

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            markro Mark Roberts
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 10m
                10m