[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] FYI: gnu/regexp/RETokenChar.java fixed
From: |
Ito Kazumitsu |
Subject: |
[cp-patches] FYI: gnu/regexp/RETokenChar.java fixed |
Date: |
Tue, 17 Jan 2006 23:27:38 +0900 (JST) |
I am checking this in.
This bug appeared after embedded flag (?i) was supported.
2006-01-17 Ito Kazumitsu <address@hidden>
*gnu/regexp/RETokenChar.java(chain):
Do not concatenate tokens whose insens flags are diffent.
Index: classpath/gnu/regexp/RETokenChar.java
===================================================================
RCS file: /cvsroot/classpath/classpath/gnu/regexp/RETokenChar.java,v
retrieving revision 1.2
diff -u -r1.2 RETokenChar.java
--- classpath/gnu/regexp/RETokenChar.java 2 Jul 2005 20:32:15 -0000
1.2
+++ classpath/gnu/regexp/RETokenChar.java 17 Jan 2006 14:08:51 -0000
@@ -68,7 +68,7 @@
// Overrides REToken.chain() to optimize for strings
boolean chain(REToken next) {
- if (next instanceof RETokenChar) {
+ if (next instanceof RETokenChar && ((RETokenChar)next).insens == insens) {
RETokenChar cnext = (RETokenChar) next;
// assume for now that next can only be one character
int newsize = ch.length + cnext.ch.length;
- [cp-patches] FYI: gnu/regexp/RETokenChar.java fixed,
Ito Kazumitsu <=