Uploaded image for project: 'Apache PLC4X'
  1. Apache PLC4X
  2. PLC4X-211

PlcValues seem to always return "true" on the "isXYZ" checks.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.7.0, 0.8.0
    • 0.8.0
    • Core
    • None

    Description

      It seems that all implementations of PlcValue seem to have an implementation of all "is" methods to simply return "true", actually they should check if the value is in the bounds of the given type. 

      For PlcByte, this might be correct, cause the value of a PlcByte can be stored in any of the larger types, but for a PlcInteger the "isByte" check should check the value of the integer values against the bounds of a Short type.

      Attachments

        Activity

          People

            cdutz Christofer Dutz
            cdutz Christofer Dutz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: