jakarta-regexp-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pavel Sher" <pa...@actimind.com>
Subject Possibly bug?
Date Thu, 18 Sep 2003 18:09:26 GMT
Hello,

I have a problem when I invoke the following code:

int index = 0;
String text = "<b\nxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
insideTagRE = new RE( "<(([^>]|\n)*)>" );
insideTagRE.match(text, index);

I've got StackOverflowException:

    [junit] Testcase: testStackOverflow took 0.203 sec
    [junit]  Caused an ERROR
    [junit] null
    [junit] java.lang.StackOverflowError
    [junit]  at org.apache.regexp.StringCharacterIterator.isEnd(StringCharacterIterator.java:96)
    [junit]  at org.apache.regexp.RE.matchNodes(RE.java:1314)
    [junit]  at org.apache.regexp.RE.matchNodes(RE.java:1376)
    [junit]  at org.apache.regexp.RE.matchNodes(RE.java:910)
    [junit]  at org.apache.regexp.RE.matchNodes(RE.java:1376)
    [junit]  at org.apache.regexp.RE.matchNodes(RE.java:933)
    [junit]  at org.apache.regexp.RE.matchNodes(RE.java:1376)
    [junit]  at org.apache.regexp.RE.matchNodes(RE.java:910)
    [junit]  at org.apache.regexp.RE.matchNodes(RE.java:1376)
    [junit]  at org.apache.regexp.RE.matchNodes(RE.java:933)
    [junit]  at org.apache.regexp.RE.matchNodes(RE.java:1376)
    [junit]  at org.apache.regexp.RE.matchNodes(RE.java:910)
    [junit]  at org.apache.regexp.RE.matchNodes(RE.java:1376)
    [junit]  at org.apache.regexp.RE.matchNodes(RE.java:933)
    [junit]  at org.apache.regexp.RE.matchNodes(RE.java:1376)
    [junit]  at org.apache.regexp.RE.matchNodes(RE.java:910)
    [junit]  at org.apache.regexp.RE.matchNodes(RE.java:1376)
    [junit]  at org.apache.regexp.RE.matchNodes(RE.java:933)
    [junit]  at org.apache.regexp.RE.matchNodes(RE.java:1376)
    [junit]  at org.apache.regexp.RE.matchNodes(RE.java:910)
    [junit]  at org.apache.regexp.RE.matchNodes(RE.java:1376)
    [junit]  at org.apache.regexp.RE.matchNodes(RE.java:933)
    [junit]  at org.apache.regexp.RE.matchNodes(RE.java:1376)
    [junit]  at org.apache.regexp.RE.matchNodes(RE.java:910)

May be it is a problem with my regular exception? 
With this regexp I just trying to match content inside HTML tag.

--
Best regards

Pavel Sher pavel@actimind.com


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message