The JADE 2022 release meets tomorrow’s business demands.
myArray : StringArray;
myArray := create StringArray transient;
myArray.tryAddIfNotNull("a String");
Compiles fine. Throws a 1312 at runtime (Class of value passed to a collection method incompatible with membership)
Can the compiler be enhanced to detect this as an illegal operation? Either that, or the language be enhanced to allow this.
Hi Damian. This is a bug, and the same issue exists with tryRemoveIfNotNull(). Please open a PARSYS Contact and we'll address it.