From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7934 invoked by alias); 16 Mar 2005 21:48:07 -0000 Mailing-List: contact java-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-prs-owner@gcc.gnu.org Received: (qmail 7893 invoked by uid 48); 16 Mar 2005 21:48:05 -0000 Date: Wed, 16 Mar 2005 22:27:00 -0000 From: "overholt at redhat dot com" To: java-prs@gcc.gnu.org Message-ID: <20050316214802.20504.overholt@redhat.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug libgcj/20504] New: java.util.regex implementation doesn't support quoting constructs X-Bugzilla-Reason: CC X-SW-Source: 2005-q1/txt/msg00714.txt.bz2 List-Id: This was originally filed in GNU Classpath's BTS, but it should probably be here as well. Ziga Mahkovec wrote there (https://savannah.gnu.org/bugs/index.php?func=detailitem&item_id=12307): We were recently having some problems with the search functionality in native eclipse[1]. It boiled down to the lack of quoting regex constructs support in gnu.regexp.RE (\Q, \E). A simple test: Pattern.compile("\\Q" + "boo" + "\\E").matcher("Peekaboo").find(); returns false using classpath and true using java-sun. I'm attaching a more comprehensive Mauve test for the java.util.regex functionality. It consists of three test suites, adapted from PCRE[2] (which is BSD licensed): - testdata1: tests that are currently passed by classpath - testdata2: tests that currently fail (disabled since they probably need to be reviewed) - testdata3: tests that use quoting constructs I'm also attaching a tentative patch for the quoting constructs problem. [1] https://bugzilla.redhat.com/beta/show_bug.cgi?id=149927 [2] http://www.pcre.org/ -- Summary: java.util.regex implementation doesn't support quoting constructs Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: libgcj AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: overholt at redhat dot com CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20504