diff options
author | Aaron Luchko <aluchko@redhat.com> | 2005-07-27 19:04:14 +0000 |
---|---|---|
committer | Aaron Luchko <aluchko@redhat.com> | 2005-07-27 19:04:14 +0000 |
commit | d36f2086c9cfd1478d4e041614d60aca87040fc1 (patch) | |
tree | 320799e530256d07dedf96660c9dbaa7ffdabac0 /gnu/classpath | |
parent | 64540457b1e547b497477356ca7a339c469db201 (diff) | |
download | classpath-d36f2086c9cfd1478d4e041614d60aca87040fc1.tar.gz |
* gnu/classpath/jdwp/util/PacketProcessor.java: Implement
PrivilegedAction to allow privilaged operations.
Diffstat (limited to 'gnu/classpath')
-rw-r--r-- | gnu/classpath/jdwp/processor/PacketProcessor.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gnu/classpath/jdwp/processor/PacketProcessor.java b/gnu/classpath/jdwp/processor/PacketProcessor.java index 914494c24..9e281f217 100644 --- a/gnu/classpath/jdwp/processor/PacketProcessor.java +++ b/gnu/classpath/jdwp/processor/PacketProcessor.java @@ -52,6 +52,7 @@ import java.io.ByteArrayOutputStream; import java.io.DataOutputStream; import java.io.IOException; import java.nio.ByteBuffer; +import java.security.PrivilegedAction; /** * This class is responsible for processing packets from the @@ -62,7 +63,7 @@ import java.nio.ByteBuffer; * @author Keith Seitz (keiths@redhat.com) */ public class PacketProcessor - extends Thread + implements PrivilegedAction { // The connection to the debugger private JdwpConnection _connection; @@ -134,7 +135,7 @@ public class PacketProcessor * Main run routine for this thread. Will loop getting packets * from the connection and processing them. */ - public void run () + public Object run () { try { @@ -149,6 +150,7 @@ public class PacketProcessor } // Time to shutdown, tell Jdwp to shutdown Jdwp.getDefault().shutdown(); + return null; } /** @@ -157,7 +159,6 @@ public class PacketProcessor public void shutdown () { _shutdown = true; - interrupt (); } // Helper function which actually does all the work of waiting |