Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-5015663

JSR003: ObjectInstance throws NPE in hashCode() and equals()

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 5.0
    • Fix Version/s: 5.0
    • Component/s: core-svc
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b46
    • CPU:
      generic
    • OS:
      generic

      Description

      ObjectInstance lets you construct an ObjectInstance with a null ClassName,
      but will later throw a NPE if equals() or hashCode() is called.

      In some particular cases (e.g bogus DynamicMBean sometime returning a
      null className, proxies to remote MBeans throwing exception in getMBeanInfo()
      when the remote connection is broken, etc...), it can break queryNames() and
      queryMBeans().

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dfuchs Daniel Fuchs
              Reporter:
              dfuchs Daniel Fuchs
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: