blob: 2523aba1798d10a8ea5dbe1c92aff16478a813d6 [file] [log] [blame]
package p1.p2;
import android.app.Application;
import java.lang.ClassNotFoundException;
import java.lang.IllegalAccessException;
import java.lang.NoSuchMethodException;
import java.lang.reflect.InvocationTargetException;
public class Class {
public void reflect(int x) {
try {
thrower();
} catch (<error descr="Multi-catch with these reflection exceptions requires API level 19 (current min is 1) because they get compiled to the common but new super type `ReflectiveOperationException`. As a workaround either create individual catch statements, or catch `Exception`.">ClassNotFoundException | NoSuchMethodException | IllegalAccessException ignore</error>) {
ignore.printStackTrace();
}
}
protected void thrower() throws ClassNotFoundException, NoSuchMethodException, IllegalAccessException {
// TODO
}
}