Back to the problem from earlier:
| public class SimpleFieldBean
| {
| @Inject
| public Simple field;
|
| public Simple getField()
| {
| return field;
| }
| }
|
The issue is that if the field is public it works and PropertyInfo has both a getter and a
FieldInfo. If it is private PropertyInfo.getFieldInfo() returns null and no injection
happens on the field.
Jsr 330 requires injection to be possible in non-public fields, so we probably need to fix
this? I'm unsure if that will break anything else, or if we need a new BeanAccessMode.
On a related note I haven't tried injecting into non-public methods, setters and
constructors yet, which are also required to be supported.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4265935#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...