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 <[EMAIL PROTECTED]> * 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 _______________________________________________ Classpath-patches mailing list Classpath-patches@gnu.org http://lists.gnu.org/mailman/listinfo/classpath-patches