You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Tim Ellison (JIRA)" <ji...@apache.org> on 2009/04/22 21:37:47 UTC

[jira] Updated: (HARMONY-6087) [luni] java.util.Scanner behaves differently with RI while parsing specific pattern

     [ https://issues.apache.org/jira/browse/HARMONY-6087?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tim Ellison updated HARMONY-6087:
---------------------------------

    Fix Version/s:     (was: 5.0M9)
                   5.0M10

> [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.0M10
>
>         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.