Closed sker65 closed 10 years ago
Nice one. :-) Will try to have a look at this soon.
Thanks for reporting. Can you verify the fix works for your project?
I will do so tomorow. :-) Am 14.03.2014 00:53 schrieb "Stefan Fleiter" notifications@github.com:
Thanks for reporting. Can you verify the fix works for your project?
Reply to this email directly or view it on GitHubhttps://github.com/sfleiter/cdi-interceptors/issues/11#issuecomment-37601549 .
The method getAnnotation in class LoggingInterceptor tries to get the @Logging annotation. First method level annos are checked, second class level annos.
But when class level annotations are present only on subclass, but invoked method is declared in base class the lookup code in getAnnotation will produce a RTE.
The WELD CDI container activates the interceptor for calls to base class methods, but the interceptor implementation doesn't find the right annotation (class level but in subclass only).