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

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

    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

          People

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

            Dates

              Created:
              Updated:
              Resolved: