[RFA/JDWP] ThreadGroupReferenceCommandSet.java
Tom Tromey
tromey@redhat.com
Wed Jul 20 17:18:00 GMT 2005
>>>>> "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
More information about the Java-patches
mailing list