Found ANOTHER javac bug.

This commit is contained in:
Reinier Zwitserloot committed 2009-07-10 02:47:24 +02:00
1 parent 6f9a776367
commit 97c6436fe6
1 file changed
+3 -1
+3 -1
View File
@@ -67,5 +67,7 @@ import java.lang.annotation.Target;
@Retention(RetentionPolicy.SOURCE)
public @interface SneakyThrows {
/** The exception type(s) you want to sneakily throw onward. */
Class<? extends Throwable>[] value() default Throwable.class;
Class<? extends Throwable>[] value() default java.lang.Throwable.class;
//The package is mentioned in java.lang due to a bug in javac (presence of an annotation processor throws off the type resolver for some reason).
}