[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[commit-cp] [bugs #12307] java.util.regex implementation doesn't support
From: |
Ziga Mahkovec |
Subject: |
[commit-cp] [bugs #12307] java.util.regex implementation doesn't support quoting constructs |
Date: |
Sun, 13 Mar 2005 21:18:02 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050302 Firefox/1.0.1 Fedora/1.0.1-1.3.2 |
URL:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=12307>
Summary: java.util.regex implementation doesn't support
quoting constructs
Project: classpath
Submitted by: ziga
Submitted on: Sun 03/13/2005 at 21:18
Category: classpath
Severity: 5 - Average
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Platform Version: None
_______________________________________________________
Details:
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/
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Sun 03/13/2005 at 21:18 Name: mauve-regex.tar.gz Size: 10.22KB By:
ziga
Mauve test cases for java.util.regex
<http://savannah.gnu.org/bugs/download.php?item_id=12307&item_file_id=2301>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=12307>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [commit-cp] [bugs #12307] java.util.regex implementation doesn't support quoting constructs,
Ziga Mahkovec <=