You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Roman S. Bushmanov (JIRA)" <ji...@apache.org> on 2007/07/06 10:29:04 UTC

[jira] Created: (HARMONY-4363) [buildtest][func] Incorrect regexp filters in ST06Test jdwp test

[buildtest][func] Incorrect regexp filters in ST06Test jdwp test
----------------------------------------------------------------

                 Key: HARMONY-4363
                 URL: https://issues.apache.org/jira/browse/HARMONY-4363
             Project: Harmony
          Issue Type: Bug
            Reporter: Roman S. Bushmanov


The fulctional test
functional/org/apache/harmony/test/func/jpda/jdwp/scenario/ST06/ST06Test.xml   
has the following problem.

The test uses className.matches(stepFilters[j]) statement to check the class name. The items in stepFilters look like "org.apache.harmony.nio.*"

However the method String.matches() expect it argument to be a regular expression. The filters defined in the test are valid regular expressions but ther meaning is different when being treated as regexp. 

For example, "org.apache.harmony.niochar.charset.UTF_8$Encoder".matches("org.apache.harmony.nio.*") returns true while false is expected by the test authors.

The filter "org.apache.harmony.nio.*" should be changed to something like "org\\.apache\\.harmony\\.nio\\..*"

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HARMONY-4363) [buildtest][func] Incorrect regexp filters in ST06Test jdwp test

Posted by "Roman S. Bushmanov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4363?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Roman S. Bushmanov updated HARMONY-4363:
----------------------------------------

    Component/s: build - test - ci

> [buildtest][func] Incorrect regexp filters in ST06Test jdwp test
> ----------------------------------------------------------------
>
>                 Key: HARMONY-4363
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4363
>             Project: Harmony
>          Issue Type: Bug
>          Components: build - test - ci
>            Reporter: Roman S. Bushmanov
>
> The fulctional test
> functional/org/apache/harmony/test/func/jpda/jdwp/scenario/ST06/ST06Test.xml   
> has the following problem.
> The test uses className.matches(stepFilters[j]) statement to check the class name. The items in stepFilters look like "org.apache.harmony.nio.*"
> However the method String.matches() expect it argument to be a regular expression. The filters defined in the test are valid regular expressions but ther meaning is different when being treated as regexp. 
> For example, "org.apache.harmony.niochar.charset.UTF_8$Encoder".matches("org.apache.harmony.nio.*") returns true while false is expected by the test authors.
> The filter "org.apache.harmony.nio.*" should be changed to something like "org\\.apache\\.harmony\\.nio\\..*"

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.