infomas-asl icon indicating copy to clipboard operation
infomas-asl copied to clipboard

Annotation Detector hides all Throwables from its users by catching Throwable

Open halfmanhalffish opened this issue 10 years ago • 0 comments

In private void detect(final ClassFileIterator iterator) there's a catch (Throwable) which can and will catch any exception that is thrown from users' Reporter classes. This makes it harder for users to write correct code, since problems will be hidden from them. This applies to version 3.0.4. I didn't check version 3.1.

Call Hierarchy: reportTypeAnnotation(Class<? extends Annotation>, String) : void readAnnotations(DataInput, char) : void - eu.infomas.annotation.AnnotationDetector readAttributes(DataInput, char, boolean) : void - eu.infomas.annotation.AnnotationDetector detect(DataInput) : void - eu.infomas.annotation.AnnotationDetector detect(ClassFileIterator) : void - eu.infomas.annotation.AnnotationDetector detect() : void - eu.infomas.annotation.AnnotationDetector detect(File...) : void - eu.infomas.annotation.AnnotationDetector

halfmanhalffish avatar Nov 04 '14 22:11 halfmanhalffish