[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] Re: [RFA/JDWP] ThreadGroupReferenceCommandSet.java
From: |
Tom Tromey |
Subject: |
[cp-patches] Re: [RFA/JDWP] ThreadGroupReferenceCommandSet.java |
Date: |
20 Jul 2005 11:14:38 -0600 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 |
>>>>> "Aaron" == Aaron Luchko <address@hidden> writes:
Aaron> 2005-07-12 Aaron Luchko <address@hidden>
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