Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 40970 invoked from network); 21 Apr 2009 02:47:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 Apr 2009 02:47:09 -0000 Received: (qmail 42323 invoked by uid 500); 21 Apr 2009 02:47:08 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 42263 invoked by uid 500); 21 Apr 2009 02:47:08 -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 42254 invoked by uid 99); 21 Apr 2009 02:47:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Apr 2009 02:47:08 +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; Tue, 21 Apr 2009 02:47:07 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9F0FC234C044 for ; Mon, 20 Apr 2009 19:46:47 -0700 (PDT) Message-ID: <470262190.1240282007650.JavaMail.jira@brutus> Date: Mon, 20 Apr 2009 19:46:47 -0700 (PDT) From: "Jim Yu (JIRA)" To: commits@harmony.apache.org Subject: [jira] Commented: (HARMONY-6087) [luni] java.util.Scanner behaves differently with RI while parsing specific pattern In-Reply-To: <196583040.1234255619947.JavaMail.jira@brutus> 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-6087?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12701023#action_12701023 ] Jim Yu commented on HARMONY-6087: --------------------------------- Verified at r766950. Thanks, Tim. > [luni] java.util.Scanner behaves differently with RI while parsing specific pattern > ------------------------------------------------------------------------------------ > > Key: HARMONY-6087 > URL: https://issues.apache.org/jira/browse/HARMONY-6087 > Project: Harmony > Issue Type: Bug > Components: Classlib > Affects Versions: 5.0M8 > Reporter: Jim Yu > Assignee: Tim Ellison > Fix For: 5.0M9 > > Attachments: HARMONY-6087.diff > > Original Estimate: 24h > Remaining Estimate: 24h > > Here is a testcase, Scanner of Harmony behaves differently with RI > import java.util.Scanner; > import java.util.regex.Pattern; > public class SpecialPattern { > private static final Pattern pattern = Pattern.compile("^\\s*(?:\\*(?=[^/]))"); > public static void main(String[] args) { > Scanner scn = new Scanner(" *\n"); > String found = scn.findInLine(pattern); > System.out.print(found); > } > } > Result of RI: > * > Result of Harmony: > null -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.