Just tried to run the junit tests on BRANCH_2_1_X, and the second
assertion in WildcardHelperTestCase fails:

 public void testEndPattern() throws Exception {
       final Map resultMap = new HashMap();
       final String pattern = "*/";
       final int[] expr = WildcardHelper.compilePattern(pattern);
       boolean result = WildcardHelper.match(resultMap, "foo/bar/", expr);

       // this one passes
       assertFalse("Url 'foo/bar/' should not match pattern '*/'.", result);

       // this one fails
       result = WildcardHelper.match(resultMap, "test/foo/bar/", expr);
       assertFalse("Url 'test/foo/bar/' should not match pattern
'*/'.", result);

       result = WildcardHelper.match(resultMap, "foo/", expr);
       assertTrue("Url 'foo/' should match pattern '*/'", result);

IIUC, this is related to http://tinyurl.com/ydvkcb , but Carsten says
in that thread that the bug has been fixed. Any clues?

(environment: macosx 10.4.8, JDK 1.5.0_06)

-Bertrand

Reply via email to