Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-2071

Validators using Regexps shouldn't use the pool-based PatternMatcher

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 4.1.3
    • 4.1.5
    • Framework
    • None
    • any

    Description

      PatternMatcher pools regular expression which makes sense when used as a member of (singleton-) services.
      Validators on the other hand, are normally used as leight-weight beans not surviving a request cycle. Creating
      a commons-pool for each of them doesn't seem right - and causes trouble when commons-pool breaks.
      Thus validators should use java.util.regex.Pattern directly.

      Attachments

        Activity

          People

            mschu Marcus Schulte
            mschu Marcus Schulte
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: