Project

General

Profile

Bug #8978

ErrorConditionException in not being propagated correctly

Added by Artur Școlnic about 2 years ago. Updated almost 2 years ago.

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

100%

billable:
No
vendor_id:
GCD
case_num:
version_reported:
7156b/15104
version_resolved:
trunk/15455
reviewer:
production:
No
env_name:
topics:

History

#1 Updated by Artur Școlnic about 2 years ago

myClass file

routine-level on error undo, throw.
class myClass:
    define temp-table tt1
    field f1 as char
    field f2 as char.
    define temp-table tt2
    field f1 as char
    field f2 as char.
    define dataset ds for tt1, tt2.

    method void method1(input dataset ds):
    end method.

    method logical method2(input dsh as handle):
            method1(dataset-handle dsh by-reference).
            return true.
            catch e as Progress.Lang.Error:
                return false.
            end catch.
    end method.
end class.

The start program
define temp-table tt1
field f1 as char
field f2 as char.
define variable dsh as handle.
create dataset dsh.
dsh:SET-BUFFERS(BUFFER tt1:HANDLE).

message new myClass():method2(dsh).

The example above messages no in 4gl, bu in FWD the result is ?.
This error is not being caught, so a return value is not being set.

#2 Updated by Artur Școlnic about 2 years ago

triggerErrorInCaller:5579, TransactionManager (com.goldencode.p2j.util)
triggerErrorInCaller:5519, TransactionManager (com.goldencode.p2j.util)
triggerErrorInCaller:1992, TransactionManager (com.goldencode.p2j.util)
bind:367, StaticDataSet (com.goldencode.p2j.persist)
associateImpl:668, DataSet (com.goldencode.p2j.persist)
lambda$associate$0:558, DataSet (com.goldencode.p2j.persist)
exec:-1, 1850194375 (com.goldencode.p2j.persist.DataSet$$Lambda$700)
timer:131, NanoTimer (com.goldencode.p2j.jmx)
associate:558, DataSet (com.goldencode.p2j.persist)
associate:539, DataSet (com.goldencode.p2j.persist)
associate:518, DataSet (com.goldencode.p2j.persist)
lambda$method1$1:52, MyClass (com.goldencode.dataset)
init:-1, 1214244194 (com.goldencode.dataset.MyClass$$Lambda$699)
init:596, Block (com.goldencode.p2j.util)
topLevelBlock:8865, BlockManager (com.goldencode.p2j.util)
internalProcedure:862, BlockManager (com.goldencode.p2j.util)
internalProcedure:835, BlockManager (com.goldencode.p2j.util)
method1:50, MyClass (com.goldencode.dataset)

#3 Updated by Artur Școlnic about 2 years ago

This ticket is derived from #8912-105.

#5 Updated by Artur Școlnic almost 2 years ago

This issue is solved by 8912f, it was merged to trunk/15455, the ticket can be closed.

#6 Updated by Greg Shah almost 2 years ago

  • version_resolved set to trunk/15455
  • Status changed from New to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF