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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 5.0
    • 5.0
    • core-svc
    • b46
    • generic
    • generic

      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().

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: