Details

    • Type: Bug
    • Status: Deployed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.5.5.006, 5.2.3.33
    • Fix Version/s: 5.2.6.21
    • Labels:
      None
    • Environment:

      CommandBox on Win7

    • Sprint:
      January 2018 Sprint

      Description

      Implicit methods do not seem to be respecting the type attributes when accessors=true. Example code:

      test.cfc

      component accessors="true" {
      
      	property name="alice" type="numeric";
      	property name="bob" type="boolean";
      
      }
      

      test.cfm

      <cfscript>
      	testObj = new test( 
      		alice = 'james',
      		bob = true
      	);
      
      	writeDump( testObj );
      
      	testObj = new test( 
      		alice = 12,
      		bob = false
      	);
      
      	writeDump( testObj );
      </cfscript>
      

      results:

      Expected Result:

      The value cannot be converted to a numeric because it is not a simple value.

        Attachments

        1. aliceBobResults.png
          29 kB
        2. test.cfc
          0.1 kB
        3. test.cfm
          0.2 kB

          Activity

            People

            • Assignee:
              michaeloffner Michael Offner
              Reporter:
              ddspringle Denard Springle
            • Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: