diff options
author | Björn Gustavsson <[email protected]> | 2018-04-16 12:50:21 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2018-04-16 14:30:34 +0200 |
commit | fd12c1a168a53d8d4633571433565c859e962b71 (patch) | |
tree | eeb116c962836c28ce34a2356666ad7494d237c5 | |
parent | 1f4b02e1ebe8dd011feba5dc6916025e61ee7e67 (diff) | |
download | otp-fd12c1a168a53d8d4633571433565c859e962b71.tar.gz otp-fd12c1a168a53d8d4633571433565c859e962b71.tar.bz2 otp-fd12c1a168a53d8d4633571433565c859e962b71.zip |
Deprecate erlang:get_stacktrace/0
-rw-r--r-- | erts/preloaded/ebin/erlang.beam | bin | 102724 -> 102732 bytes | |||
-rw-r--r-- | erts/preloaded/src/erlang.erl | 2 | ||||
-rw-r--r-- | lib/stdlib/src/otp_internal.erl | 3 |
3 files changed, 4 insertions, 1 deletions
diff --git a/erts/preloaded/ebin/erlang.beam b/erts/preloaded/ebin/erlang.beam Binary files differindex e93f053e01..3ef5ad0646 100644 --- a/erts/preloaded/ebin/erlang.beam +++ b/erts/preloaded/ebin/erlang.beam diff --git a/erts/preloaded/src/erlang.erl b/erts/preloaded/src/erlang.erl index bffa59338e..c761bbaaeb 100644 --- a/erts/preloaded/src/erlang.erl +++ b/erts/preloaded/src/erlang.erl @@ -50,7 +50,7 @@ dist_ctrl_get_data_notification/1, dist_get_stat/1]). --deprecated([now/0]). +-deprecated([get_stacktrace/0,now/0]). %% Get rid of autoimports of spawn to avoid clashes with ourselves. -compile({no_auto_import,[spawn_link/1]}). diff --git a/lib/stdlib/src/otp_internal.erl b/lib/stdlib/src/otp_internal.erl index 5b488cc677..a17addcc42 100644 --- a/lib/stdlib/src/otp_internal.erl +++ b/lib/stdlib/src/otp_internal.erl @@ -604,6 +604,9 @@ obsolete_1(filename, find_src, 1) -> obsolete_1(filename, find_src, 2) -> {deprecated, "deprecated; use filelib:find_source/3 instead"}; +obsolete_1(erlang, get_stacktrace, 0) -> + {deprecated, "deprecated; use the new try/catch syntax for retrieving the stack backtrace"}; + %% Removed in OTP 20. obsolete_1(erlang, hash, 2) -> |