scala/scala — pull request #745 by retronym (2012-06-19 05:31:54+00:00)
Title: SI-2807 Resurrect and refine the promiscuous catch warning.

The previous incarnation didn't survive 4fb3473.

This version can be cleared by using a typed pattern: `catch { case _: Throwable => }`.

This is motivated by the recent appearance of such a catch in `util.Try`, and by battle
scars left by one too many processes bravely but stupidly catching and logging OutOfMemoryErrors.

This is an alternative to #730, which enables the warning by default.

It doesn't attempt to remedy the instances of this warning throughout the Scala distribution -- these must be considered individually by people familiar with the code.

Review by @jsuereth