Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 42667 invoked from network); 8 Jul 2009 10:32:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Jul 2009 10:32:27 -0000 Received: (qmail 42552 invoked by uid 500); 8 Jul 2009 10:32:37 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 42533 invoked by uid 500); 8 Jul 2009 10:32:37 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 42524 invoked by uid 99); 8 Jul 2009 10:32:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Jul 2009 10:32:37 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Jul 2009 10:32:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id EEBE1234C004 for ; Wed, 8 Jul 2009 03:32:14 -0700 (PDT) Message-ID: <834435688.1247049134963.JavaMail.jira@brutus> Date: Wed, 8 Jul 2009 03:32:14 -0700 (PDT) From: "Oliver Deakin (JIRA)" To: commits@harmony.apache.org Subject: [jira] Closed: (HARMONY-2063) [classlib][luni]method hasNextXXX() of j.u.Scanner does not cache the value. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ 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.