[ https://issues.apache.org/jira/browse/HARMONY-2621?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Vasily Zakharov updated HARMONY-2621:
-------------------------------------
Attachment: Harmony-2621-Test.patch
Harmony-2621.patch
> [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
> 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
|