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

Specs for Menu.remove don't define its behaviour in case of null

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.2.0
    • docs
    • merlin
    • sparc
    • solaris_2.5



      Name: saC57035 Date: 10/05/98


      The specs for Menu.remove(MenuComponent item) say nothing
      about the method's behaviour when item is null.

      In JDK 1.1.X NullPointerException is thrown in this case.
      Starting with JDK 1.2 this method silently accepts null
      and does nothing. The scarce docs make impossible to
      determine which behaviour is correct.

      ======================================================================

            shainessunw Suzette Haines (Inactive)
            savzan Stanislav Avzan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: