You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Tony Wu (JIRA)" <ji...@apache.org> on 2006/11/03 11:03:57 UTC
[jira] Updated: (HARMONY-2063) [classlib][luni]method hasNextXXX()
of j.u.Scanner does not cache the value.
[ http://issues.apache.org/jira/browse/HARMONY-2063?page=all ]
Tony Wu updated HARMONY-2063:
-----------------------------
Attachment: harmony-2063.diff
this patch fix methods for Short and Integer.
fix for Long, Float, Double, BigInteger will come with next patch.
> [classlib][luni]method hasNextXXX() of j.u.Scanner does not cache the value.
> ----------------------------------------------------------------------------
>
> Key: HARMONY-2063
> URL: http://issues.apache.org/jira/browse/HARMONY-2063
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Tony Wu
> Attachments: harmony-2063.diff
>
>
> RI caches the value when calling hasNextShort() for following nextShort(), but harmony does not.
> Refer to testcase below, which passed on RI but failed on Hamorny.
> Scanner fails for this test
> public void testNextShort() {
> Scanner scanner=new Scanner("123 123");
> assertFalse(scanner.hasNextShort(16) && scanner.nextShort()==123);
> }
--
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