1 2 3 4 5 6 7 8 9 10 11
public class TypeAnnoOnExceptionParameter { class Throwable2 extends Throwable {} class Throwable3 extends Throwable {} public void m() { try { foo(); } catch (@Anno Throwable3 | @Anno(99) Throwable2 t) { } } public void foo() throws Throwable2,Throwable3 {} }