Project

General

Profile

Bug #5613

4GL built-in functions throw IllegalArgumentException

Added by Greg Shah over 2 years ago. Updated over 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
Due date:
% Done:

0%

billable:
No
vendor_id:
GCD
case_num:

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 broken NO-ERROR clause support. For example, Functions.toString(Date value, String fmt) (4GL DATE counterparts) calls date.toString(String fmt) which can throw IllegalArgumentException.

#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.

Also available in: Atom PDF