mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-24 14:49:58 +00:00
6351692: catch(Throwable) in java.beans.MetaData preventing thread shutdown
Reviewed-by: peterz, loneid
This commit is contained in:
parent
e2a366414c
commit
1bdca97b29
@ -298,7 +298,7 @@ public class DefaultPersistenceDelegate extends PersistenceDelegate {
|
||||
oldL = (EventListener[])MethodUtil.invoke(m, oldInstance, new Object[]{});
|
||||
newL = (EventListener[])MethodUtil.invoke(m, newInstance, new Object[]{});
|
||||
}
|
||||
catch (Throwable e2) {
|
||||
catch (Exception e2) {
|
||||
try {
|
||||
Method m = type.getMethod("getListeners", new Class[]{Class.class});
|
||||
oldL = (EventListener[])MethodUtil.invoke(m, oldInstance, new Object[]{listenerType});
|
||||
|
||||
@ -404,7 +404,7 @@ public class EventHandler implements InvocationHandler {
|
||||
Object newTarget = MethodUtil.invoke(getter, target, new Object[]{});
|
||||
return applyGetters(newTarget, rest);
|
||||
}
|
||||
catch (Throwable e) {
|
||||
catch (Exception e) {
|
||||
throw new RuntimeException("Failed to call method: " + first +
|
||||
" on " + target, e);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user