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

           Summary: file size limitation when specify RE.MATCH_SINGLELINE |
                    RE.MATCH_CASEINDEPENDENT on RE constructor.
           Product: Regexp
           Version: unspecified
          Platform: Other
        OS/Version: AIX
            Status: NEW
          Severity: critical
          Priority: P2
         Component: Other
        AssignedTo: regexp-dev@jakarta.apache.org
        ReportedBy: [EMAIL PROTECTED]


When the flags RE.MATCH_SINGLELINE and RE.MATCH_CASEINDEPENDENT are both set, 
the program dies if the scanned file is too long.  If I set either of the 
flags, but NOT BOTH, the file is scanned successfully.  However, if I set both 
flags, the program dies if scanned file is over a specific length.  

code snippet:
int iFlags = RE.MATCH_CASEINDEPENDENT|RE.MATCH_SINGLELINE;                      
RE re = new RE(strPattern,iFlags);                      
Reader reader = new FileReader(strFilePathAndName);
CharacterIterator in = new ReaderCharacterIterator(reader);
int iEnd=0;
while(re.match(in,iEnd))
{                                                                       
iEnd= re.getParenEnd(0)                                                         
String strFoundTag = re.getParen(0);
...
}

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to