Bug #5613
4GL built-in functions throw IllegalArgumentException
0%
History
#1 Updated by Greg Shah over 2 years ago
From Igor:
Some Java counterparts of 4GL functions which are called directly from the converted code can throw
IllegalArgumentException
. In particular, this results in brokenNO-ERROR
clause support. For example,Functions.toString(Date value, String fmt)
(4GLDATE
counterparts) callsdate.toString(String fmt)
which can throwIllegalArgumentException
.
#3 Updated by Greg Shah over 2 years ago
Igor: Let's avoid using the term "UDF" here since that is specific to database WHERE clause execution. The problem here is with the STRING()
4GL built-in function. Please show a testcase that recreates the problem.
#4 Updated by Igor Skornyakov over 2 years ago
Greg Shah wrote:
Igor: Let's avoid using the term "UDF" here since that is specific to database WHERE clause execution. The problem here is with the
STRING()
4GL built-in function. Please show a testcase that recreates the problem.
For example 4GL DATETIME(NOW, " t")
.
The corresponding code in the datatime.toString(String fmt)
:
if (datePartFormat.isEmpty() || timePartFormat.isEmpty()) { throw new IllegalArgumentException("Invalid datetime format: " + saveFmt); }
#5 Updated by Greg Shah over 2 years ago
- Subject changed from STRING() throws IllegalArgumentException to 4GL built-in functions throw IllegalArgumentException
Please make a list of all of the cases you have found. It is OK to just list the names of the 4GL programs in the testcases
project which are affected.