Details

    • Issuezilla Id:
      806

      Description

      In the spec "6.7.34 Literal" (page 124):
      "An UncastLiteral is always interpreted as a Value of property type STRING."

      This means the expression TRUE is interpreted as a String.
      If you want a boolean expression, you need to write:
      CAST(TRUE AS BOOLEAN). That's strange.
      The same for other expressions such as numbers.

        Activity

        Hide
        mreutegg added a comment -

        I suggest we change the paragraph from:

        "An UncastLiteral is always interpreted as a Value of property type STRING. A
        CastLiteral, on the other hand, is interpreted as the string form of a Value of
        the PropertyType indicated."

        to:

        "An UncastLiteral may be interpreted as a Value of property type STRING or some
        other type inferred from static analysis. A CastLiteral, on the other hand, is
        interpreted as the string form of a Value of the PropertyType indicated."

        Show
        mreutegg added a comment - I suggest we change the paragraph from: "An UncastLiteral is always interpreted as a Value of property type STRING. A CastLiteral, on the other hand, is interpreted as the string form of a Value of the PropertyType indicated." to: "An UncastLiteral may be interpreted as a Value of property type STRING or some other type inferred from static analysis. A CastLiteral, on the other hand, is interpreted as the string form of a Value of the PropertyType indicated."
        Hide
        mreutegg added a comment -

        Fixed as suggested.

        Show
        mreutegg added a comment - Fixed as suggested.

          People

          • Assignee:
            jsr-283-issues
            Reporter:
            thomasmueller2
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: