/** * Return true if the exception, or a parent of the exception, is in the list of exceptions. */ public static final boolean isExceptionInList(JavaClass exc, List exceptionList) { if((exc == null) || (exceptionList == null)) { return false; } if(!exc.isExistingType()) { return false; } Iterator iterator = exceptionList.iterator(); while(iterator.hasNext()) { JavaClass exception = (JavaClass)iterator.next(); if(isAssignableFrom(exc, exception)) { // If there is a reflection problem, do not swallow the exception or a // faulty message may appear. (i.e., "exc" is not thrown by "foo" when it // really is but one of foo's exceptions wasn't reflected. return true; } } return false; }
/** * Return true if the exception, or a child of the exception, is in the list of exceptions. */ public static final boolean isSubtypeExceptionInList(JavaClass exc, List exceptionList) { if((exc == null) || (exceptionList == null)) { return false; } if(!exc.isExistingType()) { return false; } Iterator iterator = exceptionList.iterator(); while(iterator.hasNext()) { JavaClass exception = (JavaClass)iterator.next(); if(isAssignableFrom(exception, exc)) { // If there is a reflection problem, do not swallow the exception or a // faulty message may appear. (i.e., "exc" is not thrown by "foo" when it // really is but one of foo's exceptions wasn't reflected. return true; } } return false; }
if((ejbClass != null) && (ejbClass.isExistingType())) { classes[count++] = ejbClass; if((remoteClass != null) && (remoteClass.isExistingType())) { classes[count++] = remoteClass; if((localClass != null) && (localClass.isExistingType())) { classes[count++] = localClass; if((homeClass != null) && (homeClass.isExistingType())) { classes[count++] = homeClass; if((localHomeClass != null) && (localHomeClass.isExistingType())) { classes[count++] = localHomeClass; if((key != null) && (key.isExistingType())) { classes[count++] = key;
public boolean hasReflectionSource() { // This method is used to determine if valid, so we pass on to use the final component. ArrayType jh = (ArrayType) getTarget(); JavaHelpers fc = jh.getFinalComponentType(); return (fc.isPrimitive() || ((JavaClass) fc).isExistingType()); }
if(!wrapper.isExistingType()) { Logger aLogger = getMsgLogger(); if(aLogger.isLoggingLevel(Level.FINEST)) {