[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug classpath/36085] New: java.util.regex escape-sequence handling
From: |
john-sheu at mail dot utexas dot edu |
Subject: |
[Bug classpath/36085] New: java.util.regex escape-sequence handling |
Date: |
30 Apr 2008 10:43:25 -0000 |
java.util.regex.Matcher doesn't seem to handle escapes sequences in a
replacement steam correctly. I suspect (from absolutely no evidence) that it
may be a bug with regexes in general.
Test program:
public class Test
{
public static void main( String[] args )
{
System.out.println( "Test #".replaceAll( "#", "\\\\n" ) );
}
}
Sun Java (1.6) output:
Test \n
GCJ (4.1.2) output:
Test \\n
--
Summary: java.util.regex escape-sequence handling
Product: classpath
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: classpath
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: john-sheu at mail dot utexas dot edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36085
- [Bug classpath/36085] New: java.util.regex escape-sequence handling,
john-sheu at mail dot utexas dot edu <=