harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Denis Kishenko (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-2621) [classlib][swing] DefaultBoundedRangeModel(Integer.MAX_VALUE,1,2,4) expected IAE
Date Tue, 12 Dec 2006 10:42:21 GMT
[classlib][swing] DefaultBoundedRangeModel(Integer.MAX_VALUE,1,2,4) expected IAE
--------------------------------------------------------------------------------

                 Key: HARMONY-2621
                 URL: http://issues.apache.org/jira/browse/HARMONY-2621
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: Denis Kishenko


According to the specification for DefaultBoundedRangeModel(int value,int extent,int min,int
max) constructor must throw an IllegalArgumentException if the following constraints aren't
satisfied:  min <= value <= value+extent <= max
Harmony does not throw an exception for test listed below while RI does.

import javax.swing.*;

public class test {
    public static void main(String[] args {                      
            new DefaultBoundedRangeModel(Integer.MAX_VALUE,1,2,4);             
    }                                                                        
}
Output on RI:
java.lang.IllegalArgumentException: invalid range properties
        at
javax.swing.DefaultBoundedRangeModel.<init>(DefaultBoundedRangeModel.java:85)
        at test.main(test.java:16)

Output on Harmony:
(no output)


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message