Uploaded image for project: 'Lucee Development'
  1. LDEV-875

cacheput() does not accept numeric value for timespan

    Details

    • Type: Bug
    • Status: Deployed
    • Priority: New
    • Resolution: Fixed
    • Affects Version/s: 5.0.0.252
    • Fix Version/s: 5.0.1.12
    • Labels:
      None

      Description

      Trying to use cacheput() against an ehCache cache.

      If I type:

      cacheput("wibble", "blah", createtimespan(1,0,0,0), createtimespan(1,0,0,0), "test")

      it works fine. But if I use:

      cacheput("wibble", "blah", 1, 1, "test")

      it throws the error:

      java.lang.Double cannot be cast to lucee.runtime.type.dt.TimeSpan

      The numeric value 1 should equate to a timespan of one day, and always has done previously. I'm not sure if this issue applies to other functions which take a timespan as an argument...

        Attachments

          Activity

            People

            • Assignee:
              michaeloffner Michael Offner
              Reporter:
              seb.duggan Seb Duggan
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: