harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vasily Zakharov (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-2621) [classlib][swing] DefaultBoundedRangeModel(Integer.MAX_VALUE,1,2,4) expected IAE
Date Thu, 11 Jan 2007 17:01:27 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-2621?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12463939
] 

Vasily Zakharov commented on HARMONY-2621:
------------------------------------------

Thanks, Oliver! The patch is fine.


> [classlib][swing] DefaultBoundedRangeModel(Integer.MAX_VALUE,1,2,4) expected IAE
> --------------------------------------------------------------------------------
>
>                 Key: HARMONY-2621
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2621
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Denis Kishenko
>         Assigned To: Oliver Deakin
>         Attachments: Harmony-2621-Test.patch, Harmony-2621.patch
>
>
> 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: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message