mardi 21 avril 2015

Why is RichException (getStrackTraceString) deprecated in Scala 2.11?

RichException, a "library enhancement" for Throwable which provides the method getStackTraceString: String, is deprecated as of Scala 2.11. The deprecation flag includes only the message Use Throwable#getStackTrace.

Is this supposed to imply that one should migrate away from the deprecated method by simply inlining the implementation, e.g. by replacing



_.getStackTrace().mkString("", EOL, EOL)

or does is the deprecation intended to indicate that this approach is, for some reason, a bad idea?

Aucun commentaire:

Enregistrer un commentaire