tracker issue : CF-4202192

select a category, or use search below
(searches all categories and all time range)
Title:

[ANeff] Bug for: ["integer"][] should work again

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/AsDesigned

Reporter/Name(from Bugbase): Aaron Neff / ()

Created: 04/28/2018

Components: Language, CFSCRIPT

Versions: 2018

Failure Type: Non Functioning

Found In Build/Fixed In Build: 2018.0.01.308605 (PreRelease) /

Priority/Frequency: Normal / Some users will encounter

Locale/System: / Platforms All

Vote Count: 0

Issue: ["integer"][] should work again

Repro:

<cfscript>
  ["integer"][]
</cfscript>

Actual Result: "coldfusion.runtime.TypedArrayInvalidDataTypeException: integer is not a valid type. Supported data types are string, numeric, date, datetime, time, boolean, struct, array, function, query, component, binary, any and ColdFusion Component(CFC) type."

Expected Result: no exception (it should work, like it did in an earlier build)

Related thread: https://forums.adobeprerelease.com/coldfusionpr/discussion/155/how-do-i-declare-an-array-of-string-arrays

Attachments:

Comments:

The idea behind supporting only numeric, was to ensure numbers of all format can be inserted into the array. Supporting integer would present a valid case for supporting types such as double and float as well. Closing as AsDesigned.
Comment by Immanuel N.
27601 | April 30, 2018 10:36:05 AM GMT
Hi Immanuel, IMO, there is no valid use case for ["double|float"][]. No number should/would be _required_ to have a decimal. IMO, there -is- a strong use case for ["integer"][]. Integer is often used to represent an ID. These ID numbers would be _required_ to _not_ have a decimal. As integer implicitly disallows decimal, storing the IDs in ["integer"][] would be much more useful than having to run isValid("integer",..) on each one. Could you please consider? Thanks!, -Aaron
Comment by Aaron N.
27663 | May 04, 2018 06:17:13 PM GMT
Related thread: https://forums.adobeprerelease.com/coldfusionpr/discussion/362/cf-4202192-integer-should-work-again
Comment by Aaron N.
27664 | May 04, 2018 06:21:44 PM GMT
Related tickets: CF-4202293 and CF-4202294
Comment by Aaron N.
27665 | May 04, 2018 11:14:22 PM GMT