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

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


"adrian at jboss.org" wrote : "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.
  | 

In case its not clear, I'm saying it should be in a privileged block
these objects get cached and shared across threads.

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

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



More information about the jboss-dev-forums mailing list