Project

General

Profile

Bug #10599

[Regression] undoLeaveTopLevel() generated during conversion, but it doesn't exist

Added by Dănuț Filimon 10 months ago. Updated 10 months ago.

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

0%

billable:
No
vendor_id:
GCD
case_num:
version_reported:
version_resolved:
reviewer:
production:
No
env_name:
topics:

block_properties.patch Magnifier (5.41 KB) Dănuț Filimon, 09/19/2025 06:41 AM


Related issues

Related to Base Language - Bug #4602: fixes for OO 4GL and structured error handling Review

History

#1 Updated by Dănuț Filimon 10 months ago

The test case is:

define temp-table tt1 field f1 as integer.

transactionBlock:
do transaction on error undo, leave:

    create tt1.

    catch err as Progress.Lang.AppError:
        undo, leave transactionBlock.
    end.

end.
and the converted code can't be compiled because the undoLeaveTopLevel() method doesn't exist:
compile:
    [javac] Compiling 32 source files to /home/ddf/gcd/branches/hotel_gui/build/classes
    [javac] Compiling 3 source files to /home/ddf/gcd/branches/hotel_gui/build/classes
    [javac] /home/ddf/gcd/branches/hotel_gui/src/com/goldencode/hotel/Start.java:44: error: cannot find symbol
    [javac]                undoLeaveTopLevel("transactionBlock");
    [javac]                ^
    [javac]   symbol:   method undoLeaveTopLevel(String)
    [javac]   location: class Start
    [javac] 1 error

BUILD FAILED
/home/ddf/gcd/branches/hotel_gui/build.xml:483: Compile failed; see the compiler error output for details.
This regression was introduced in trunk/15867.

#4 Updated by Dănuț Filimon 10 months ago

I discussed with Eduard and he said that the issues should be fixed by 4602a. He also provided a patch I could use for the moment.

#5 Updated by Dănuț Filimon 10 months ago

  • Related to Bug #4602: fixes for OO 4GL and structured error handling added

Also available in: Atom PDF