Uploaded image for project: 'Railo'
  1. Railo
  2. RAILO-147

omitted non-required numeric attributes throw cast ecxeptions

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 3.0
    • Fix Version/s: 3.0
    • Labels:
      None
    • Environment:

      windows XP, tomcat 6.0.16

      Description

      I've a method with this CFARGUMENT tag

      <cfargument name="minUseCount" type="numeric" required="false" />

      omitting a value for the argument throws this error (which is truncated):

      can't cast String [[runtime expression]] to a value of type [numeric]
      at railo.runtime.type.UDFImpl.a(Unknown Source):-1
      at railo.runtime.type.UDFImpl.a(Unknown Source):-1
      at railo.runtime.type.UDFImpl.a(Unknown Source):-1
      at railo.runtime.type.UDFImpl.call(Unknown Source):-1
      at railo.runtime.ComponentImpl.a(Unknown Source):-1

      Seems that the implicit default for non-required arguments isn't type sensitive.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                micstriit Michael Offner
                Reporter:
                barneyb Barney Boisvert
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: