CreateObject cannot create a class from a folder

Description

As mentioned in LDEV-315, Lucee 5 cannot use the third argument in the CreateObject() as a path to load a java class (for example Test.class). for example:

createObject("java","Test",expandPath("./"));

This works in Lucee 4 by the way and in the internal documentation the function SHOULD be able to do this!

Lucee 4.5.5+006 :

  • java: classpath used to load the defined class, this can be a list of multiple paths (directories containing class files or jar files)

Lucee 5.2.2+71 :

  • java: "classpath" or "bundleName" used to load the defined class, this can be a list of multiple paths (directories containing class files or jar files) as string list or array or a name of an OSGi bundle (Lucee can download OSGi bundles automatically if necessary)

Environment

None

Attachments

3
  • 31 Aug 2017, 01:48 pm
  • 31 Aug 2017, 01:48 pm
  • 31 Aug 2017, 01:48 pm

Activity

Show:

Brad Wood 19 September 2018 at 16:02

Julian Halliwell 4 November 2017 at 12:09
Edited

Hi Mark, I think the problem was only with passing in directory paths.

(EDIT: Sorry I missed that you'd made that clear in your title. So basically this is just a duplicate.)

That bug's now been fixed as of 5.2.2.54:

https://luceeserver.atlassian.net/browse/LDEV-1266

Duplicate

Details

Assignee

Reporter

Priority

Labels

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 31 August 2017 at 13:49
Updated 19 September 2018 at 16:02
Resolved 19 September 2018 at 16:02

Flag notifications