mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fixing UndeclaredThrowableException on compilation cancel (IDEA-154699)
This commit is contained in:
@@ -197,7 +197,13 @@ public class JavacMain {
|
||||
return (StandardJavaFileManager)Proxy.newProxyInstance(fileManager.getClass().getClassLoader(), new Class[]{StandardJavaFileManager.class}, new InvocationHandler() {
|
||||
@Override
|
||||
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
|
||||
return method.invoke(fileManager.getApiCallHandler(method), args);
|
||||
try {
|
||||
return method.invoke(fileManager.getApiCallHandler(method), args);
|
||||
}
|
||||
catch (InvocationTargetException e) {
|
||||
final Throwable cause = e.getCause();
|
||||
throw cause != null? cause : e;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user