jakarta-regexp-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 35834] - file size limitation when specify RE.MATCH_SINGLELINE | RE.MATCH_CASEINDEPENDENT on RE constructor.
Date Wed, 17 Aug 2005 00:41:04 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=35834>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=35834


vgritsenko@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |RESOLVED
         Resolution|                            |DUPLICATE




------- Additional Comments From vgritsenko@apache.org  2005-08-17 02:41 -------
This simple program (adapted from what you have sent) shows what is really
happening:

import org.apache.regexp.CharacterIterator;
import org.apache.regexp.RE;
import org.apache.regexp.ReaderCharacterIterator;

import java.io.FileReader;
import java.io.IOException;

public class Test {
    public static void main(String[] args) throws IOException {
        RE re = new RE("(<A(.)*>)|(<APPLET(.)*>)|(<AREA(.)*>)",
                       RE.MATCH_CASEINDEPENDENT | RE.MATCH_SINGLELINE);
        CharacterIterator in = new ReaderCharacterIterator(new
FileReader("index.html"));
        int end = 0;
        try {
            while (re.match(in, end)) {
                System.out.println("Matched " + re.getParen(0));
                end = re.getParenEnd(0);
            }
            System.out.println("Done");
        } catch (Throwable e) {
            System.out.println("Exception " + e);
        }
    }
}

If you run it with the input file 'index.html' in the same directory, you'd see:

  Exception java.lang.StackOverflowError

It is duplicate of bug #764. If you have ideas how to fix it please comment in
bug #764.

*** This bug has been marked as a duplicate of 764 ***

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: regexp-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: regexp-dev-help@jakarta.apache.org


Mime
View raw message