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

NPE and IAE are interchanged in specification for GroupLayout.Group class

XMLWordPrintable

    • b114
    • generic
    • generic
    • Verified

      The following line:

      new GroupLayout(new JPanel()).createSequentialGroup().addComponent(null);

      throws IllegalArgumentException and the following:

      new GroupLayout(new JPanel()).createSequentialGroup().addGroup(null);

      leads to NullPointerException

      In javadoc for javax.swing.GroupLayout.Group they are specified vice versa.

            alexp Alexander Potochkin (Inactive)
            dbessono Dmitry Bessonov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: