jakarta-regexp-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCallum" <mich...@spinsoftware.com>
Subject RE: Another bug?
Date Thu, 22 Feb 2001 18:56:11 GMT
I will have a look at this as well. But not for three days.
My sister is getting married tomorrow :)

On 22 Feb 2001, at 11:41, Anders Nielsen wrote:

> oh, and also if you remove the leading "b" in the first line it doesn't
> exhibit this problem either.
> 
> regards,
> Anders Nielsen
> 
> 
> -----Original Message-----
> From: Anders Nielsen [mailto:anders@fedeabe.dk]
> Sent: 22. februar 2001 11:38
> To: regexp-dev@jakarta.apache.org
> Subject: Another bug?
> 
> 
> Here's another bug, if you also fixed this I'll stop trying until I get the
> latest dev-release. (It's not as neat)
> 
> There's about 7*400 "a"'s here...If I remove 400 of them the problem goes
> away.
> 
> 
> But when I run this program I get
> 
> java.lang.StackOverflowError
> at org.apache.regexp.RE.matchNodes(RE.java:1121)
> at org.apache.regexp.RE.matchNodes(RE.java:1376)
> at org.apache.regexp.RE.matchNodes(RE.java:1376)
> at org.apache.regexp.RE.matchNodes(RE.java:1376)
> at org.apache.regexp.RE.matchNodes(RE.java:1376)
> at org.apache.regexp.RE.matchNodes(RE.java:1376)
> at org.apache.regexp.RE.matchNodes(RE.java:1376)
> (...)
> 
> 
> ----------------------------------------------------------------------------
> ----------
> package test;
> 
> /**
>  * Title:
>  * Description:
>  * Copyright:    Copyright (c) 2001
>  * Company:
>  * @author
>  * @version 1.0
>  */
> 
> import org.apache.regexp.*;
> 
> public class test {
> 
>     public test() {
>     }
> 
>     public static void main(String[] args)
>     {
>         try {
>             String text = "";
>             text +=
> "baaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
> aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
> aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa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aaaaaaaaaaaaaaaa
> aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
> aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
> aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
> aaaaaaaaaaaaaaaaaaaaa";
>             text +=
> "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
> aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
> aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
> aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
> aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
> aaaaaaaaaaaaaaaaaaaaa";
>             RE re = new RE("a|.+");
> 
>             re.match(text);
>         }
>         catch (RESyntaxException e) {
>         }
>     }
> }
> 
> ----------------------------------------------------------------------------
> ----------
> 


--- BEGIN GEEK CODE BLOCK ---
Version 3.12
GCS d+(-) s:- a-- C++(+++)$ UL++++(H)(S)$ P+++$ L+++$>++++
E--- W++ N++ o++ K? !w() O? !M V? PS+ PE+++ Y+ t+ 5++ X++ 
R(+) !tv b++(++++) D++ G>++ e++> h--()(*) r+ y+()
--- END GEEK CODE BLOCK ---

Mime
View raw message