/** * Returns true if the method's throw clause conforms to the exception restrictions for properties as defined in * Section 1.3.4.3 of Java2IDL spec. This means that for all exceptions E declared on the method, E isChecked => * RemoteException.isAssignableFrom( E ). */ private boolean validPropertyExceptions(Method method) { Class<?>[] exceptions = method.getExceptionTypes(); for (int eIndex = 0; eIndex < exceptions.length; eIndex++) { Class<?> exception = exceptions[eIndex]; if (isCheckedException(exception) && !isRemoteException(exception)) return false; } return true; }
/** * Returns true if the method's throw clause conforms to the exception restrictions for properties as defined in * Section 1.3.4.3 of Java2IDL spec. This means that for all exceptions E declared on the method, E isChecked => * RemoteException.isAssignableFrom( E ). */ private boolean validPropertyExceptions(Method method) { Class<?>[] exceptions = method.getExceptionTypes(); for (int eIndex = 0; eIndex < exceptions.length; eIndex++) { Class<?> exception = exceptions[eIndex]; if (isCheckedException(exception) && !isRemoteException(exception)) return false; } return true; }
/** * Section 1.2.6 */ public boolean isException(Class<?> c) { if (c == null) { throw new IllegalArgumentException(); } // Must be a checked exception, not including RemoteException or // its subclasses. return isCheckedException(c) && !isRemoteException(c) && isValue(c); }
/** * Section 1.2.6 */ public boolean isException(Class<?> c) { if (c == null) { throw new IllegalArgumentException(); } // Must be a checked exception, not including RemoteException or // its subclasses. return isCheckedException(c) && !isRemoteException(c) && isValue(c); }
if (isCheckedException(exception) && !isValue(exception) && !isRemoteException(exception))
if (isCheckedException(exception) && !isValue(exception) && !isRemoteException(exception))