tracker issue : CF-4204015

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

Array of component return types not resolved correctly with import

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/Fixed

Reporter/Name(from Bugbase): Tim C. / ()

Created: 02/11/2019

Components: Language, Script CFC

Versions: 2018

Failure Type: Incorrectly functioning

Found In Build/Fixed In Build: Coldfusion 2018 Update 1 / CF2018U5

Priority/Frequency: Critical / Few users will encounter

Locale/System: English / Win 2008 Server x64

Vote Count: 0

In the attached package, i have imported the Armadillo component at the top of the Test.cfc file like so:

import test.test.Armadillo;

Later on I declared a function like so:

public Armadillo[] function getArmadillos() {
    return variables.armadillos;
}

If you run test.cfm on CF11 or CF2016, you get see that an Armadillo object is properly inserted into the array, and dumped to the page. But in CF2018, this code breaks.  Changing the above function to:

public test.test.Armadillo[] function getArmadillos() {
    return variables.armadillos;
}

makes it work again.  So it appears that import does not work correctly in CF2018.

Attachments:

Comments: