Project

General

Profile

Bug #3321

Usage of 'assert' as a symbol name is translated to non-compilable code

Added by Jaroslaw Haziak over 6 years ago. Updated over 6 years ago.

Status:
Test
Priority:
Normal
Target version:
-
Start date:
08/12/2017
Due date:
% Done:

100%

billable:
No
vendor_id:
GCD
case_num:
version:

3321_20170816a.patch Magnifier - patch to recognize 'assert' as reserved java name (813 Bytes) Eric Faulhaber, 08/16/2017 06:53 PM

History

#1 Updated by Jaroslaw Haziak over 6 years ago

Example:

DEF INPUT PARAM inParam AS CHAR NO-UNDO.
DEF OUTPUT PARAM ouResult AS CHAR NO-UNDO.

DEF VAR assert AS CHAR INIT 'test' NO-UNDO.

ouResult = inParam + assert.

Name 'assert' is translated to Java with no modification. And because 'assert' is a Java keyword, compilation fails.

#2 Updated by Eric Faulhaber over 6 years ago

Please let me know if the attached patch fixes this issue. I have compiled, but not tested it.

#3 Updated by Eric Faulhaber over 6 years ago

  • Assignee set to Eric Faulhaber
  • Status changed from New to WIP

#4 Updated by Eric Faulhaber over 6 years ago

The patch from #3321-2 was added to task branch 3293a, which was merged to FWD trunk revision 11160.

#5 Updated by Greg Shah over 6 years ago

  • % Done changed from 0 to 100

The fix for this task is included in FWD v3.1 which was recently released. Download it from https://proj.goldencode.com/projects/p2j/wiki/FWD_v3_1_0

Please let us know if this issue can be closed.

#6 Updated by Greg Shah over 6 years ago

  • Status changed from WIP to Test

Also available in: Atom PDF