If use a fully qualified name of an enum literal in an expression then you get the following error:
java.lang.ClassCastException: class com.regnosys.rosetta.types.REnumType cannot be cast to class com.regnosys.rosetta.types.RDataType (com.regnosys.rosetta.types.REnumType and com.regnosys.rosetta.types.RDataType are in unnamed module of loader 'app')
A minimum reproduction of this can be seen by creating the following function:
If use a fully qualified name of an enum literal in an expression then you get the following error:
java.lang.ClassCastException: class com.regnosys.rosetta.types.REnumType cannot be cast to class com.regnosys.rosetta.types.RDataType (com.regnosys.rosetta.types.REnumType and com.regnosys.rosetta.types.RDataType are in unnamed module of loader 'app')
A minimum reproduction of this can be seen by creating the following function: