tracker issue : CF-4206542

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

cannot call certain functions on a component

| View in Tracker

Status/Resolution/Reason: Open//

Reporter/Name(from Bugbase): Luis M. / ()

Created: 01/09/2020

Components: Language, CF Component

Versions: 2018

Failure Type:

Found In Build/Fixed In Build: latest /

Priority/Frequency: Normal /

Locale/System: / Linux All

Vote Count: 2

Problem Description:

We have in ColdBox a Base Test Case which has API testing capabilities. Basically it has several functions with the following names: get(), post(), put(), head(), options().

However, on a Component that inherits this base test case, we cannot call these methods:

var event = post( "hello" );
var event = put( "hello" );

Not even using the this scope it works

var event = this.post( "hello" );
var event = this.put( "hello" );

Actual Result:

The exception: entity has incorrect type for being called as a function. The symbol you provided is not the name of a function.

Expected Result:

This should totally work! Why is this not workin since ACF11!!

Any Workarounds:
It works in lucee

Attachments:

Comments: