diff options
author | Björn Gustavsson <[email protected]> | 2019-05-23 07:22:41 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2019-05-23 10:12:23 +0200 |
commit | 5959fb00182048d50f55d04684723d383d1aeee8 (patch) | |
tree | f01d55472255bf60398116eb719ede79dae4011c /lib/common_test | |
parent | 7fe7fa3dde556b5b92522f8279d465bb52baf1f6 (diff) | |
download | otp-5959fb00182048d50f55d04684723d383d1aeee8.tar.gz otp-5959fb00182048d50f55d04684723d383d1aeee8.tar.bz2 otp-5959fb00182048d50f55d04684723d383d1aeee8.zip |
Fix sticky class in exception
When catching an exception re-throwing with a changed
class, the class could be changed to the original class
if the exception got caught and rethrown in (for example)
an after block:
sticky_class() ->
try
try
throw(reason)
catch
throw:Reason:Stack ->
erlang:raise(error, Reason, Stack)
end
after
ok
end.
Diffstat (limited to 'lib/common_test')
0 files changed, 0 insertions, 0 deletions