harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tony Wu (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-858) Exception throwing compatibility: java.util.Scanner.nextInt(int radix)
Date Thu, 14 Sep 2006 08:51:23 GMT
    [ http://issues.apache.org/jira/browse/HARMONY-858?page=comments#action_12434616 ] 
            
Tony Wu commented on HARMONY-858:
---------------------------------

should be closed according discussion in link above

> Exception throwing compatibility: java.util.Scanner.nextInt(int radix)
> ----------------------------------------------------------------------
>
>                 Key: HARMONY-858
>                 URL: http://issues.apache.org/jira/browse/HARMONY-858
>             Project: Harmony
>          Issue Type: Bug
>          Components: Non-bug differences from RI
>            Reporter: Richard Liang
>            Priority: Minor
>
> For the method java.util.Scanner.nextInt(int radix).
> When (radix < Character.MIN_RADIX ) or (radix > Character.MAX_RADIX), Harmony always
throws IllegalArgumentException. But RI behaves differently:
>    * If the parameter is less than 0 or greater than 36, RI throws a
>      StringIndexOutOfBoundsException. 
>    * If the parameter equals 1, RI throws an InputMismatchException
>      with an additional information "The radix 1 is less than the
>      Character.MIN_RADIX".
>    * If the parameter equals 0, RI throws a
>      java.util.regex.PatternSyntaxException
> Please refer to the thread at mail-list harmony-dev: http://www.mail-archive.com/harmony-dev@incubator.apache.org/msg09758.html

-- 
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