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

Unspecified NullPointerException in java.awt.Container.addImpl()

XMLWordPrintable

    • b67
    • generic
    • windows_xp

      The specification for java.awt.Container.addImpl(Component comp, Object constraints, int index) method doesn't mention about any NullPointerException(as well as specification for class and package).
      But, when I try to invoke this method with comp=null, constraints=null, index=-1, I get NullPointerException. It seems to be out-of-specification.

      JCK test fails because of this issue:
      api/javax_swing/AbstractButton/index.html#AddImpl[addImpl0009]
      ###@###.### 2005-04-05 11:19:49 GMT

            ant Anton Tarasov (Inactive)
            ynovozhi Yulia Novozhilova (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: