/** * Due to the return type change in {@link Executable}, the caller needs a special precaution now. */ public static SubTask getParentOf(Executable e) { try { return _getParentOf(e); } catch (AbstractMethodError _) { try { Method m = e.getClass().getMethod("getParent"); m.setAccessible(true); return (SubTask) m.invoke(e); } catch (IllegalAccessException x) { throw (Error)new IllegalAccessError().initCause(x); } catch (NoSuchMethodException x) { throw (Error)new NoSuchMethodError().initCause(x); } catch (InvocationTargetException x) { Throwable y = x.getTargetException(); if (y instanceof Error) throw (Error)y; if (y instanceof RuntimeException) throw (RuntimeException)y; throw new Error(x); } } }
/** * Due to the return type change in {@link Executable}, the caller needs a special precaution now. */ public static SubTask getParentOf(Executable e) { try { return _getParentOf(e); } catch (AbstractMethodError _) { try { Method m = e.getClass().getMethod("getParent"); m.setAccessible(true); return (SubTask) m.invoke(e); } catch (IllegalAccessException x) { throw (Error)new IllegalAccessError().initCause(x); } catch (NoSuchMethodException x) { throw (Error)new NoSuchMethodError().initCause(x); } catch (InvocationTargetException x) { Throwable y = x.getTargetException(); if (y instanceof Error) throw (Error)y; if (y instanceof RuntimeException) throw (RuntimeException)y; throw new Error(x); } } }
/** * Due to the return type change in {@link Executable}, the caller needs a special precaution now. */ public static SubTask getParentOf(Executable e) { try { return _getParentOf(e); } catch (AbstractMethodError _) { try { Method m = e.getClass().getMethod("getParent"); m.setAccessible(true); return (SubTask) m.invoke(e); } catch (IllegalAccessException x) { throw (Error)new IllegalAccessError().initCause(x); } catch (NoSuchMethodException x) { throw (Error)new NoSuchMethodError().initCause(x); } catch (InvocationTargetException x) { Throwable y = x.getTargetException(); if (y instanceof Error) throw (Error)y; if (y instanceof RuntimeException) throw (RuntimeException)y; throw new Error(x); } } }
/** * Due to the return type change in {@link Executable}, the caller needs a * special precaution now. */ public static SubTask getParentOf(Executable e) { try { return _getParentOf(e); } catch (AbstractMethodError _) { try { Method m = e.getClass().getMethod("getParent"); m.setAccessible(true); return (SubTask) m.invoke(e); } catch (IllegalAccessException x) { throw (Error) new IllegalAccessError().initCause(x); } catch (NoSuchMethodException x) { throw (Error) new NoSuchMethodError().initCause(x); } catch (InvocationTargetException x) { Throwable y = x.getTargetException(); if (y instanceof Error) { throw (Error) y; } if (y instanceof RuntimeException) { throw (RuntimeException) y; } throw new Error(x); } } }