Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-5069261

Add new member to java.util.regex.MatchResult interface

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P3 P3
    • None
    • 5.0
    • core-libs

      The MatchResult interface is essentially a read-only view of the results of a matching operation. However, a MatchResult contains no information about what Pattern was matched against. So if a MatchResult is passed somewhere, the group information it contains may be hard to interpret if the Pattern to which it refers cannot be examined.

      As a practical matter the parent pattern is oftentimes on hand, however one could easily envision situations where that would not be the case.

            sherman Xueming Shen
            mmcclosksunw Michael Mccloskey (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: