Support for "new java" syntax

Description

Posted in Slack and Zach said to go ahead and post here:

ACF 2018 added support for the syntax new java("java.lang.String") as a more concise expression of createObject("java", "java.lang.String").

It would be nice to be able to use this in Lucee as well.

Activity

Show:

Pothys - MitrahSoft 19 August 2022 at 10:23

Yes, ACF supports new java(className) as shortHand of createObject("java", className) and new Component(cfcPath) as shortHand of createObject("component" , cfcPath). I added a testcase to this ticket

Pull Request:

Details

Assignee

Reporter

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

Priority

Created 18 August 2022 at 14:21
Updated 1 July 2023 at 15:37