Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-5251

StringUtils<T>.ToString() raises an exception for enum values outside range

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.13.0
    • 0.14.0
    • Delphi - Library
    • None
    • Patch Available

    Description

      StringUtils<T>.ToString() raises an exception for enum values outside range.

      e.g,.

            s := StringUtils<TMyEnum>.ToString(Pred(Low(TMyEnum))); // will raise

      Attachments

        Activity

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

          People

            jensg Jens Geyer
            jensg Jens Geyer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment