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

javax.swing.GroupLayout.createParallelGroup(..) doesn't throw IllegalArgumentException for null arg

XMLWordPrintable

    • b120
    • generic
    • generic
    • Verified

        None of the following lines will cause IllegalArgumentException

                GroupLayout groupLayout = new GroupLayout(new JPanel());
                groupLayout.createParallelGroup(null);
                groupLayout.createParallelGroup(null, true);
                groupLayout.createParallelGroup(null, false);
         
        While spec says for both methods:

        Throws:
            IllegalArgumentException - if alignment is null

              rupashka Pavel Porvatov (Inactive)
              dbessono Dmitry Bessonov
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: