sfleiter / cdi-interceptors

CDI interceptors that are reusable for different projects and scenarios
http://sfleiter.github.io/cdi-interceptors/
Apache License 2.0
4 stars 2 forks source link

When using a class level Annotation in a derived class, a RTE can occour. #11

Closed sker65 closed 10 years ago

sker65 commented 10 years ago

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).

sfleiter commented 10 years ago

Nice one. :-) Will try to have a look at this soon.

sfleiter commented 10 years ago

Thanks for reporting. Can you verify the fix works for your project?

sker65 commented 10 years ago

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 .