static <T> Field getDeclaredField(Class<T> javaClass, String name) throws NoSuchFieldException { if (System.getSecurityManager() != null) { try { return AccessController.doPrivileged(new GetDeclaredFieldAction(javaClass, name)); } catch (PrivilegedActionException e) { if (e.getCause() instanceof NoSuchFieldException) { throw (NoSuchFieldException) e.getCause(); } throw new WeldException(e.getCause()); } } else { return javaClass.getDeclaredField(name); } }
static <T> Field getDeclaredField(Class<T> javaClass, String name) throws NoSuchFieldException { if (System.getSecurityManager() != null) { try { return AccessController.doPrivileged(new GetDeclaredFieldAction(javaClass, name)); } catch (PrivilegedActionException e) { if (e.getCause() instanceof NoSuchFieldException) { throw (NoSuchFieldException) e.getCause(); } throw new WeldException(e.getCause()); } } else { return javaClass.getDeclaredField(name); } }
static <T> Field getDeclaredField(Class<T> javaClass, String name) throws NoSuchFieldException { if (System.getSecurityManager() != null) { try { return AccessController.doPrivileged(new GetDeclaredFieldAction(javaClass, name)); } catch (PrivilegedActionException e) { if (e.getCause() instanceof NoSuchFieldException) { throw (NoSuchFieldException) e.getCause(); } throw new WeldException(e.getCause()); } } else { return javaClass.getDeclaredField(name); } }
static <T> Field getDeclaredField(Class<T> javaClass, String name) throws NoSuchFieldException { if (System.getSecurityManager() != null) { try { return AccessController.doPrivileged(new GetDeclaredFieldAction(javaClass, name)); } catch (PrivilegedActionException e) { if (e.getCause() instanceof NoSuchFieldException) { throw (NoSuchFieldException) e.getCause(); } throw new WeldException(e.getCause()); } } else { return javaClass.getDeclaredField(name); } }
static <T> Field getDeclaredField(Class<T> javaClass, String name) throws NoSuchFieldException { if (System.getSecurityManager() != null) { try { return AccessController.doPrivileged(new GetDeclaredFieldAction(javaClass, name)); } catch (PrivilegedActionException e) { if (e.getCause() instanceof NoSuchFieldException) { throw (NoSuchFieldException) e.getCause(); } throw new WeldException(e.getCause()); } } else { return javaClass.getDeclaredField(name); } }
static <T> Field getDeclaredField(Class<T> javaClass, String name) throws NoSuchFieldException { if (System.getSecurityManager() != null) { try { return AccessController.doPrivileged(new GetDeclaredFieldAction(javaClass, name)); } catch (PrivilegedActionException e) { if (e.getCause() instanceof NoSuchFieldException) { throw (NoSuchFieldException) e.getCause(); } throw new WeldException(e.getCause()); } } else { return javaClass.getDeclaredField(name); } }