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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Won't Fix
    • Affects Version/s: 5.0
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: