Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recurse through class hierarchy to find a match. #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

safetytrick
Copy link

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). A work around is to annotate the field instead of the method.

This patch adds recursion to the findWriteMethod method.

The exception I got on JBoss 6.1 startup was: java.lang.RuntimeException: org.jboss.injection.injector.util.NoSuchPropertyException: No such property setSessionContext

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant