Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 61370 invoked from network); 17 Sep 2004 15:20:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 17 Sep 2004 15:20:22 -0000 Received: (qmail 35849 invoked by uid 500); 17 Sep 2004 15:20:17 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 35786 invoked by uid 500); 17 Sep 2004 15:20:16 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 35771 invoked by uid 99); 17 Sep 2004 15:20:16 -0000 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=HTML_30_40,HTML_MESSAGE,NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [146.222.19.41] (HELO hkgsmtpgw01.OOCL.COM) (146.222.19.41) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 17 Sep 2004 08:20:15 -0700 Received: from oocl.com ([146.222.11.119]) by hkgsmtpgw01 with trend_isnt_name_B; Fri, 17 Sep 2004 23:21:51 +0800 Received: from hkgmail6.corp.oocl.com ([146.222.5.109]) by oocl.com with Microsoft SMTPSVC(5.0.2195.6713); Fri, 17 Sep 2004 23:20:09 +0800 Received: from NATMAILHUB.corp.oocl.com ([146.222.121.205]) by hkgmail6.corp.oocl.com with Microsoft SMTPSVC(5.0.2195.6713); Fri, 17 Sep 2004 23:20:09 +0800 Received: from nycmail2.corp.oocl.com ([146.222.140.122]) by NATMAILHUB.corp.oocl.com with Microsoft SMTPSVC(5.0.2195.6713); Fri, 17 Sep 2004 08:20:07 -0700 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----_=_NextPart_001_01C49CC9.CF9B31E1" X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Subject: [IO] WildcardFilter and WildcardUtils Date: Fri, 17 Sep 2004 11:20:05 -0400 Message-ID: <5CBBD8DC433C83469569C31331757A4B5CC7C6@nycmail2.oocl.com> X-MS-Has-Attach: yes X-MS-TNEF-Correlator: Thread-Topic: [IO] WildcardFilter and WildcardUtils Thread-Index: AcScyc45TfZvHomZTmG8r1KS6eP9iA== From: To: X-OriginalArrivalTime: 17 Sep 2004 15:20:07.0433 (UTC) FILETIME=[D08ABF90:01C49CC9] X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C49CC9.CF9B31E1 Content-Type: multipart/alternative; boundary="----_=_NextPart_002_01C49CC9.CF9B31E1" ------_=_NextPart_002_01C49CC9.CF9B31E1 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Following on from discussions re. WildcardFilter I have changed earlier = submission to use WildcardUtils.match() method. I have attached WildcardFilter.java and updated FileFilterTestCase.java The new test case testWildcard() exposes what looks like a bug in the = match method. See commented lines which should assert false but dont. It appears that match stops checking once it reaches the end of the = wildcard and not the end of the text. regards Jason <> <>=20 IMPORTANT NOTICE Email from OOCL is confidential and may be legally privileged. If it is = not intended for you, please delete it immediately unread. The internet = cannot guarantee that this communication is free of viruses, = interception or interference and anyone who communicates with us by = email is taken to accept the risks in so doing. Without limitation, = OOCL and its affiliates accept no liability whatsoever and howsoever = arising in connection with the use of this email. Under no = circumstances shall this email constitute a binding agreement to carry = or for provision of carriage services by OOCL, which is subject to the = availability of carrier's equipment and vessels and the terms and = conditions of OOCL's standard bill of lading which is also available at = http://www.oocl.com. ------_=_NextPart_002_01C49CC9.CF9B31E1 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable [IO] WildcardFilter and WildcardUtils

Following on from discussions re. = WildcardFilter I have changed earlier submission to use = WildcardUtils.match() method.

I have attached WildcardFilter.java and = updated FileFilterTestCase.java

The new test case testWildcard() = exposes what looks like a bug in the match method.
See commented lines which should = assert false but dont.
It appears that match stops checking = once it reaches the end of the wildcard and not the end of the = text.

regards
Jason



= <<WildcardFilter.java>> <<FileFilterTestCase.java>>


IMPORTANT NOTICE
Email from OOCL is confidential and may be = legally privileged. If it is not intended for you, please delete it = immediately unread. The internet cannot guarantee that this = communication is free of viruses, interception or interference and = anyone who communicates with us by email is taken to accept the risks in = so doing. Without limitation, OOCL and its affiliates accept no = liability whatsoever and howsoever arising in connection with the use of = this email. Under no circumstances shall this email constitute a = binding agreement to carry or for provision of carriage services by = OOCL, which is subject to the availability of carrier's equipment and = vessels and the terms and conditions of OOCL's standard bill of lading = which is also available at http://www.oocl.com.
------_=_NextPart_002_01C49CC9.CF9B31E1-- ------_=_NextPart_001_01C49CC9.CF9B31E1 Content-Type: text/plain; charset=us-ascii --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org ------_=_NextPart_001_01C49CC9.CF9B31E1--