wolfc/jboss-injection — pull request #2 by safetytrick (2011-10-28 05:04:57+00:00)
Title: findWriteMethod recursion

I am seeing errors with an abstract base class that declares @Resource, I believe the reason this fails is because Class.getDeclaredMethods only returns the current classes methods, not base classes (getDeclaredField with a fieldname parameter will grab base classes). My work around is to annotate the field instead of the method.

This patch adds recursion to the findWriteMethod method.

The exception that prompted me to look for the problem occured in JBoss 6.1 startup: java.lang.RuntimeException: org.jboss.injection.injector.util.NoSuchPropertyException: No such property setSessionContext