functions included in a component are not visible to the component

Description

When a cfml that has one or more functions is included into a cfc, the functions included are not recognised or visible within the cfc.

// test.cfc

component { public test function init() { return this; } public string function normalFunction() { return "Normal function call"; } include "inc_func.cfm"; }

// inc_func.cfm

<cfscript> public string function anotherFunction() { return "Function with a special sign"; } </cfscript>

// test.cfm

<cfscript> obj = createObject('component','test.test').init(); writedump(obj); </cfscript>

Environment

OS: OS X Yosemite

Attachments

1
  • 30 Aug 2015, 10:20 pm

Activity

Show:

Arowolo Abiodun 23 October 2015 at 06:38

This is fixed now

Arowolo Abiodun 17 September 2015 at 10:08
Edited

Thanks Michael, Its fixed now.

Michael Offner 14 September 2015 at 12:19

You cannot update Lucee 5 in the admin yet.
please simply download the Lucee jar from here and let us know if it fix your issue
http://preview.lucee.org/download/

Arowolo Abiodun 30 August 2015 at 22:27

Thank you Alex, do you know when its going to be available on the Lucee update service page from the admin?

Alex Skinner 30 August 2015 at 22:24

I believe this is already fixed,

Please try the .62 jar from here

https://oss.sonatype.org/content/repositories/snapshots/org/lucee/lucee/5.0.0.62-SNAPSHOT/

Thanks

Alex

Duplicate

Details

Assignee

Reporter

Priority

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Affects versions

Created 30 August 2015 at 22:16
Updated 19 April 2016 at 16:35
Resolved 19 April 2016 at 16:35

Flag notifications