myStruct = { foo:"bar" }
dump(getMetaData(myStruct));
In Lucee 5 (and ACF 2023) getMetaData() always returns a class. In Lucee 6 if the argument is an array or struct getMetaData() returns a struct. For all other data types it appears to still return the class.
OS: Mac OS
Java Version: OpenJDK Runtime Environment (11.0.20.1+0)
Lucee Version: 6.0.1.0:1697524684073
CommandBox:5.9.1
In Lucee 5.4, when the argument passed to getmetadata() is an array or struct, it returns the class. However, in Lucee 6.0, it returns a struct.
This change occurred in Lucee 6.0.0.21 and later, as indicated in the commit link: LDEV-2495 - extend function getMetaData and make second argument of L… · lucee/Lucee@4910d4a · GitHub.
This getmetadata() function is related to the issue discussed in the following ticket: LDEV-2495
OK, thanks. Is it not an ACF compatibility issue now though (which is ironic considering the ticket referenced is about achieving ACF compatibility)?
With this code:
<cfdump var="#getMetaData({foo:"bar"})#">
Lucee 6 result:
ACF 2023: