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

MBeanInfo.equals() throws NPE if description of second MBeanInfo is null.

    XMLWordPrintable

    Details

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

      Description


      MBeanInfo mbi1 = new MBeanInfo("MyClass","",null,null,null,null);
      MBeanInfo mbi2 = new MBeanInfo("MyClass",null,null,null,null,null);
            <= pass null as description

      if (mbi1.equals(mbi2)) <= this throws NPE

        Attachments

          Activity

            People

            Assignee:
            sjiang Shanliang Jiang (Inactive)
            Reporter:
            dfuchs Daniel Fuchs
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: