Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DAFFODIL-1988

textOutputMinLength - incorrect code found by inspection

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.0
    • 2.3.0
    • Middle "End"
    • None

    Description

      This logic
      {{
      val isTypeUsingTextOutputMinLength = typeDef.typeNode match

      { case s: NodeInfo.String.Kind => false case s: NodeInfo.HexBinary.Kind => false case s: NodeInfo.AnySimpleType.Kind if (impliedRepresentation eq Representation.Binary) && this.textOutputMinLength > 0 => true case _ => false }

      }}

      The sense of the "if (impliedRepresentation eq Representation.Binary) is backward. It should be asking if it is Representation.Text.

      This is used to issue an SDE about explicit length being out of range for textOutputMinLength, but will clearly not do so in the right way.

      Attachments

        Activity

          People

            dfthompson Dave Thompson
            mbeckerle Mike Beckerle
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: