Hi!

It seems that Guice is not intercepting annotations on superclass
methods.
I wrote a suite of tests where each class under test inherits one
method from a base test.
That base test method is declared @Transactional, which we intercept
ourselves.

This has worked great until recently! Unfortunately something happened
where that method is not intercepted anymore.
The methods that are not in superclass and annotated ARE still
intercepted.  I dug in a little deeper and it appears that
<class>.<method>.getAnnotation(<Annotation>) does not return the
annotation if the method is inherited.  That is what causes Guice to
not intercept.

But what has changed?
The only thing I can think of was that we upgraded Java to
jdk1.6.0_20.

Seems like this issue already appeared in 2008 though:
http://code.google.com/p/google-guice/issues/detail?id=201&colspec=ID%20Type%20Status%20Priority%20Milestone%20Owner%20Summary%20Extension

Please help.

-- 
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To post to this group, send email to google-gu...@googlegroups.com.
To unsubscribe from this group, send email to 
google-guice+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-guice?hl=en.

Reply via email to