This fixes the return type of two ThreadMXBean methods
as spotted by JAPI.

2006-06-27  Andrew John Hughes  <[EMAIL PROTECTED]>

        * java/lang/management/ThreadMXBean.java:
        (getThreadInfo(long[])): Corrected return type.
        (getThreadInfo(long[], int)): Likewise.

-- 
Andrew :-)

Please avoid sending me Microsoft Office (e.g. Word, PowerPoint) attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html

If you use Microsoft Office, support movement towards the end of vendor lock-in:
http://opendocumentfellowship.org/petition/

"Value your freedom, or you will lose it, teaches history. 
`Don't bother us with politics' respond those who don't want to learn." 
-- Richard Stallman

Escape the Java Trap with GNU Classpath!
http://www.gnu.org/philosophy/java-trap.html
public class gcj extends Freedom implements Java { ... }
Index: java/lang/management/ThreadMXBean.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/lang/management/ThreadMXBean.java,v
retrieving revision 1.1
diff -u -3 -p -u -r1.1 ThreadMXBean.java
--- java/lang/management/ThreadMXBean.java      26 Jun 2006 20:56:58 -0000      
1.1
+++ java/lang/management/ThreadMXBean.java      27 Jun 2006 18:21:56 -0000
@@ -282,7 +282,7 @@ public interface ThreadMXBean
    * @throws SecurityException if a security manager exists and
    *                           denies ManagementPermission("monitor").
    */
-  ThreadInfo getThreadInfo(long[] ids);
+  ThreadInfo[] getThreadInfo(long[] ids);
 
   /**
    * Returns information on the specified thread with
@@ -336,7 +336,7 @@ public interface ThreadMXBean
    * @throws SecurityException if a security manager exists and
    *                           denies ManagementPermission("monitor").
    */
-  ThreadInfo getThreadInfo(long[] ids, int maxDepth);
+  ThreadInfo[] getThreadInfo(long[] ids, int maxDepth);
 
   /**
    * <p>

Attachment: signature.asc
Description: Digital signature

Reply via email to