scala/scala — pull request #752 by retronym (2012-06-19 19:43:09+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.

-Y status has been skipped: this warning is enabled by default and can only be silenced
with use of a typed pattern.

A third-time's-the-charm submission, that follows #730 and #745.

Seal of approval needed by @odersky, "I agree this would be a good idea." doesn't convince the would be mergers.