[ https://issues.apache.org/jira/browse/HARMONY-2063?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Oliver Deakin closed HARMONY-2063.
----------------------------------
Closing as issue was verified.
> [classlib][luni]method hasNextXXX() of j.u.Scanner does not cache the value.
> ----------------------------------------------------------------------------
>
> Key: HARMONY-2063
> URL: https://issues.apache.org/jira/browse/HARMONY-2063
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Tony Wu
> Assignee: Paulex Yang
> Attachments: harmony-2063-2.diff, 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.
-
You can reply to this email to add a comment to the issue online.
|