UDF Type Checking setting ignored in 5.3.5

Description

This is a placeholder ticket until we can get more information, but in testing an app that works in 5.3.3 and 5.3.4 on the 5.3.5 snapshots (currently 5.3.5.69), we are seeing a lot of new errors related to UDF type checking. In most cases, they're legitimate, where we are declaring a return type and then not returning that type; but with the 'UDF Type Checking' option disabled in Lucee admin, this should be allowed, yes?

In other cases, we have mappings such that a component could be foo.bar.component (the actual directory path) or ourApp.foo.bar.component (the path with the mapping) and we've been using return types based on how Lucee mapped those components previously, which was the mapped path – now we're seeing errors where it could not cast foo.bar.component to ourApp.foo.bar.component.

We can (and obviously should) fix the first case where our code is just lying about return types, but it seems that either Lucee should respect the UDF Type Checking option or remove it if there was a conscious decision made to enforce type checking.

Environment

None

Assignee

Unassigned

Reporter

Samuel W. Knowlton

Priority

New

Labels

None

Fix versions

None

Affects versions

Configure