bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug classpath/22893] java.util.regex implementation doesn't support quo


From: gcc-bugzilla at gcc dot gnu dot org
Subject: [Bug classpath/22893] java.util.regex implementation doesn't support quoting constructs
Date: 16 Oct 2005 01:27:36 -0000

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/


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22893





reply via email to

[Prev in Thread] Current Thread [Next in Thread]