Community
Participate
Working Groups
Given the following EGL Source: decimalType decimal?; syslib.writeStdout("decimalType " + decimalType); The following is printed at runtime for Java: decimalType The + operator for EString does not support null values: /** * {@Operation +} Concatenates two strings. */ static function $Plus(lvalue EString in, rvalue EString in) returns(EString) {@Operation{"+"}}; I believe this should throw an NVE at runtime.
We need to know what this scenario is supposed to do, before we can fix the one you mention below. stringType string?; syslib.writeStdout("stringType " + stringType); Does this also throw an exception, because I recall from discussions with Tim, that when we concatenate a null to a string, that this is acceptable. If it is, then we need to modify the runtime for the asString (and others) methods to throw a NVE when the value is null. Right now it just passes the null along as a string value, which is allowed.
The eglar's are being updated to allow nulls to be used with plus for string ... there is nothing that needs to be changed for javagen.
Invalid.