You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
scala> util.control.Exception.catching(classOf[InterruptedException]).withApply{x => ()} { thrownewInterruptedException }
java.lang.InterruptedException
at $anonfun$2.apply(<console>:8)
at $anonfun$2.apply(<console>:8)
at scala.util.control.Exception$Catch.apply(Exception.scala:88)
at .<init>(<console>:8)
[...]
Hey catching, I said CATCH! InterruptedException, I said!
This is kinda sorta documented, so arguably it was just my failure to RTFM. But it does seem odd to me that if I explicitly say I want to catch that exception, it doesn't override the shouldRethrow stuff.
Priority: low, no doubt. Opening the ticket anyway.