[multiple changes]

2007-02-15  Andrew Haley  <aph@redhat.com>

        * Makefile.am (nat_source_files): Remove
        java/lang/management/natVMManagementFactory.cc.
        * java/lang/Thread.java (getStackTrace): Use reflection to call
        the ManagementFactory.
        * java/lang/management/VMManagementFactory.java: Remove native
        methods.
        * java/lang/management/natVMManagementFactory.cc: Deleted.
        * sources.am: Regnerate.
        * scripts/makemake.tcl: Add new "bcheaders" type.
        Move java/lang/management and gnu/classpath/management to "bc".
        Move gnu/java/lang/management to "bcheaders".

2007-02-16  Andrew Haley  <aph@redhat.com>

        * gnu/java/lang/management/MemoryMXBeanImpl.java,
        javax/management/MBeanServerDelegate.java: Use
        gnu.javax.management.ListenerData rather than
        gnu.classpath.ListenerData.
        * gnu/javax/management/ListenerData.java: Move here from
        gnu/classpath/ListenerData.java.

From-SVN: r122041
This commit is contained in:
Andrew Haley 2007-02-16 13:51:04 +00:00 committed by Andrew Haley
parent 421076b552
commit 24d8ce15e2
20 changed files with 188 additions and 185 deletions

View file

@ -1,5 +1,5 @@
/* VMManagementFactory.java - VM interface for obtaining system beans.
Copyright (C) 2006 Free Software Foundation
Copyright (C) 2006, 2007 Free Software Foundation
This file is part of GNU Classpath.
@ -54,7 +54,11 @@ final class VMManagementFactory
*
* @return a list of memory pool names.
*/
static native String[] getMemoryPoolNames();
static String[] getMemoryPoolNames()
{
String[] result = {"Heap"};
return result;
}
/**
* Return a list of the names of the currently available
@ -63,7 +67,11 @@ final class VMManagementFactory
*
* @return a list of memory manager names.
*/
static native String[] getMemoryManagerNames();
static String[] getMemoryManagerNames()
{
String[] result = {};
return result;
}
/**
* Return a list of the names of the currently available
@ -71,5 +79,9 @@ final class VMManagementFactory
*
* @return a list of garbage collector names.
*/
static native String[] getGarbageCollectorNames();
static String[] getGarbageCollectorNames()
{
String[] result = {"BoehmGC"};
return result;
}
}