You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Oliver Deakin (JIRA)" <ji...@apache.org> on 2007/01/11 12:49:29 UTC
[jira] Resolved: (HARMONY-2621) [classlib][swing]
DefaultBoundedRangeModel(Integer.MAX_VALUE,1,2,4) expected IAE
[ https://issues.apache.org/jira/browse/HARMONY-2621?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Oliver Deakin resolved HARMONY-2621.
------------------------------------
Resolution: Fixed
Thanks Vasily and Denis.
Patch applied at revision r495201. Please check that the patch applied as expected.
> [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