From 3f3c0cb749c9e50c91eaabbbb80d87d22bfe7024 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Wed, 19 Aug 2009 13:13:54 +0200 Subject: Added link to sun bug db which contains a feature request that is analogous to @SneakyThrows, except with a keyword. --- website/features/SneakyThrows.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/website/features/SneakyThrows.html b/website/features/SneakyThrows.html index 3f414bab..ec7d09c5 100644 --- a/website/features/SneakyThrows.html +++ b/website/features/SneakyThrows.html @@ -54,6 +54,8 @@

Small print

+ @SneakyThrows is an implementation of this feature request: http://bugs.sun.com/view_bug.do?bug_id=6534270. +

Because @SneakyThrows is an implementation detail and not part of your method signature, it is an error if you try to declare a checked exception as sneakily thrown when you don't call any methods that throw this exception. (Doing so is perfectly legal for throws statements to accomodate subclasses). Similarly, @SneakyThrows does not inherit. -- cgit