cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benson Margulies <bimargul...@gmail.com>
Subject ClassNotFound versus ExceptionInitializationError
Date Tue, 16 Nov 2010 20:17:25 GMT
 This code in Aegis can get an ExceptionInInitializerError (rather
than a ClassNotFound). Think it might be more better to eat those,
too?

private static Class<? extends Annotation> load(String name) {
        try {
            return
AnnotationReader.class.getClassLoader().loadClass(name).asSubclass(Annotation.class);
        } catch (ClassNotFoundException e) {
            return null;
        }
    }

Mime
View raw message