#1 Fix PerlValidator lock-up

closed-out-of-date
nobody
None
5
2006-10-07
2005-08-09
Jan Ploski
No

This patch is to be applied against revision 1.11 of PerlValidator.java
(current HEAD).

PerlValidator.java rev. 1.11 locks up with 100% CPU usage at line 338 (re.
getAllMatches) when building my project. This fix removes the problem. I
remember encountering similar problems with gnu.regexp before.

I replaced uses of gnu.regexp in PerlValidator.java with Java 1.4's built-in
regular expressions. This should be also done in other source files for
consistency, unless you support Java 1.3 (judging from the forum posts,
EPIC requires 1.4 anyway).

Also corrected a minor compiler warning about 'enum' being used as
identifier.

Added escaping of { } characters in PerlValidator.
initializeErrorsAndWarnings in order to avoid exceptions thrown in validate
when trying to compile a regex pattern for error message E476 from
errorsAndWarnings.properties (possibly also other error messages which
contain literal brace characters).

Discussion

  • Jan Ploski
    Jan Ploski
    2005-08-09

    Updated version of PerlValidator.java

     
    Attachments
  • Jan Ploski
    Jan Ploski
    2006-10-07

    • status: open --> closed-out-of-date