Create a simple servlet that uses the @Resource annotation to inject a managed
bean. The managed bean class should have the @ManagedBean annotation applied at
the class level and a public String toString() method.
I expected to be able to call (directly or indirectly) the toString method on
the injected managed bean. Instead I get something like:
Also of note is that if I call toString on a managed bean without an overridden
toString method I get something like:
So the behavior is changing when I add in a toString method however it looks
like sometype of interceptor is always added for each method and it is not
forwarding calls to toString.
Please note that this is with a plain JSR316 managed bean. Adding a beans.xml to
the project to activate CDI causes the toString method to behave properly so
this seems to be a flaw in the vanilla JSR316 managed bean implementation.