Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.0.0.013
    • Fix Version/s: 4.1.0.000, 4.0.1.001
    • Labels:
      None
    • Steps to Reproduce:
      Hide

      <cfscript>
      test = [

      {one="tahi"}

      ,
      ["rua", "toru"],
      "wha"
      ];

      try

      { arrayDelete(test, "WHA"); writeDump(test); }

      catch (any e)

      { writeOutput("#e.message# #e.detail#<br />"); }

      test = [
      "tahi",
      {two="rua"},
      ["toru", "wha"]
      ];

      try { arrayDelete(test, "tahi"); writeDump(test); } catch (any e){ writeOutput("#e.message# #e.detail#<br />"); }

      </cfscript>

      Show
      <cfscript> test = [ {one="tahi"} , ["rua", "toru"] , "wha" ]; try { arrayDelete(test, "WHA"); writeDump(test); } catch (any e) { writeOutput("#e.message# #e.detail#<br />"); } test = [ "tahi", {two="rua"}, ["toru", "wha"] ]; try { arrayDelete(test, "tahi"); writeDump(test); } catch (any e){ writeOutput("#e.message# #e.detail#<br />"); } </cfscript>

      Description

      See repro code.

      The first one errors with "can't compare Complex Object Type Struct with a String" when it hits one of the complex objects in the array. Note in the second example it works find because it finds the match before needing to check the complex objects.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                micstriit Michael Offner
                Reporter:
                adamcameroncf Adam Cameron
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: