[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Field injection

adrian@jboss.org do-not-reply at jboss.com
Mon Mar 17 09:19:03 EDT 2008


"adrian at jboss.org" wrote : 
  |    public void setField(Field field)
  |    {
  |       this.field = field;
  |       if (isPublic() == false && field != null)
  |          field.setAccessible(true);
  |    }
  | 

Actually its not a security hole, because you have done it properly.
The setAccessible will fail depending upon the who the caller is.


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4137045#4137045

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4137045



More information about the jboss-dev-forums mailing list