United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6613904 javax.swing.GroupLayout.createParallelGroup(..) doesn't throw IllegalArgumentException for null arg
JDK-6613904 : javax.swing.GroupLayout.createParallelGroup(..) doesn't throw IllegalArgumentException for null arg

Details
Type:
Bug
Submit Date:
2007-10-06
Status:
Closed
Updated Date:
2012-03-22
Project Name:
JDK
Resolved Date:
2011-03-08
Component:
client-libs
OS:
generic
Sub-Component:
javax.swing
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
6u2,7
Fixed Versions:

Related Reports
Backport:

Sub Tasks

Description
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

                                    

Comments
EVALUATION

We should throw IAE when needed.
                                     
2010-10-22
EVALUATION

http://hg.openjdk.java.net/jdk7/build/jdk/rev/d385b33c0db0
                                     
2010-12-04



Hardware and Software, Engineered to Work Together