This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA/JDWP] ThreadGroupReferenceCommandSet.java


>>>>> "Aaron" == Aaron Luchko <aluchko@redhat.com> writes:

Aaron> 2005-07-12  Aaron Luchko  <aluchko@redhat.com>
Aaron>      * gnu/classpath/jdwp/processor/ThreadGroupReferenceCommandSet.java:
Aaron>        Implemented the ThreadGroupReference CommandSet.

Aaron> +            throw new NotImplementedException("Command " + command +
Aaron> +              " not found in String Reference Command Set.");

I think "String" is wrong here.

Aaron> +  private void executeParent(ByteBuffer bb, DataOutputStream os)
Aaron> +    throws JdwpException, IOException
Aaron> +  {
Aaron> +    ObjectId oid = idMan.readId(bb);
Aaron> +    ThreadGroup group = (ThreadGroup) oid.getObject();
Aaron> +    ThreadGroup parent = group.getParent();

ThreadGroup.getParent() does a security access check.
What is the plan here?  One idea would be to use
AccessController.doPrivileged to perform these actions.
Or, I suppose that could be done at a higher level in the code that
dispatches the commands.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]