Uploaded image for project: 'Clojure'
  1. CLJ-820

int coercion doesn't work in clojure 1.3

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Declined
    • Affects versions: Release 1.3
    • Fix versions: Release 1.5
    • Labels:
      None
    • Environment:

      Gentoo GNU/Linux

      Description

      Using the clojure git head as of 2011-07-14 (commit f704853751d02faf72bd53be599ee0be6c1da63e), int coercion doesn't work:

      user> (class (int 1))
      java.lang.Long

      byte, short, double, and float coercion work fine, though:

      user> (class (byte 1))
      java.lang.Byte
      user> (class (short 1))
      java.lang.Short
      user> (class (double 1))
      java.lang.Double
      user> (class (float 1))
      java.lang.Float

      Also creating integers directly works fine:

      user> (class (Integer. "100"))
      java.lang.Integer
      user> (class (Integer/valueOf 1))
      java.lang.Integer
      user> (class (Integer. 100))
      java.lang.Integer

      This is probably related to CLJ-439 Closed .

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              tsdh Tassilo Horn
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: