Java Enum use in CFML Incompatible with ACF

Description

An error is thrown when you try to compare two java Enum values with the IS or == operators. Here is an example:

Works on ACF: https://trycf.com/gist/f864ef7ea675dad4c5d545e18e62442c/acf2018
Fails on Lucee: https://trycf.com/gist/f864ef7ea675dad4c5d545e18e62442c/lucee5

can't compare complex object types as simple value

One workaround is to rewrite as: if ( o.equals( o.ASCENDING ) )

Assignee

Michael Offner

Reporter

Pete Freitag

Labels

None

Sprint

None

Fix versions

Affects versions

Priority

Minor
Configure