classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] [FYI/JDWP] Minor fixed to VirtualMachineCommandSet


From: Aaron Luchko
Subject: [cp-patches] [FYI/JDWP] Minor fixed to VirtualMachineCommandSet
Date: Fri, 12 Aug 2005 21:06:49 -0400

Fixed the exception thrown when an invalid command is given and used
root.enumerate(allThreads) instead of root.enumerate(allThreads, true)
since they both call the same method.

Aaron

ChangeLog
2005-08-12  Aaron Luchko  <address@hidden>
        * gnu/classpath/jdwp/processor/VirtualMachineCommandSet.java
        (executeAllThreads): Use enumerate(Thread[]) instead of 
        enumerate(Thread[], true).
        (runCommand): Throw NotImplementedException when command is not 
        found.


Index: gnu/classpath/jdwp/processor/VirtualMachineCommandSet.java
===================================================================
RCS
file: 
/cvsroot/classpath/classpath/gnu/classpath/jdwp/processor/VirtualMachineCommandSet.java,v
retrieving revision 1.1
diff -u -r1.1 gnu/classpath/jdwp/processor/VirtualMachineCommandSet.java
--- gnu/classpath/jdwp/processor/VirtualMachineCommandSet.java  14 Jul
2005 17:23:40 -0000     1.1
+++ gnu/classpath/jdwp/processor/VirtualMachineCommandSet.java  13 Aug
2005 01:01:24 -0000
@@ -144,9 +144,9 @@
           case
JdwpConstants.CommandSet.VirtualMachine.ALL_CLASSES_WITH_GENERIC:
             executeAllClassesWithGeneric(bb, os);
             break;
-
           default:
-            break;
+            throw new NotImplementedException("Command " + command +
+            " not found in VirtualMachine Command Set.");
           }
       }
     catch (IOException ex)
@@ -246,7 +246,7 @@
 
     int numThreads = root.activeCount();
     Thread allThreads[] = new Thread[numThreads];
-    root.enumerate(allThreads, true);
+    root.enumerate(allThreads);
 
     // We need to loop through for the true count since some threads
may have
     // been destroyed since we got






reply via email to

[Prev in Thread] Current Thread [Next in Thread]