Uploaded image for project: 'Commons Validator'
  1. Commons Validator
  2. VALIDATOR-30

[validator] API Bug in org.apache.commons.validator.ValidatorResult

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2.0 Release
    • None
    • None
    • None
    • Operating System: other
      Platform: All

    • 37704

    Description

      Why is the class protected:
      org.apache.commons.validator.ValidatorResult.ResultStatus
      I implemented a special ValidatorForm that needs to access to this object to
      check that no validations error exists for a particular property form and if so
      do some job, I don't find any other way than accessing to this object.
      In my opinion, it's an API bug, because the method
      ValidatorResult#getActionMap() is public but it return a map where values are
      ValidatorResult.ResultStatus making this method useless.
      Could ValidatorResult.ResultStatus become public ?
      I can send you the patch but is it necessary regarding the modification
      Thank you.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            p.mouawad@ubik-ingenierie.com Philippe Mouawad
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment