summaryrefslogtreecommitdiff
path: root/libjava/java/lang/management/VMManagementFactory.java
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/java/lang/management/VMManagementFactory.java')
-rw-r--r--libjava/java/lang/management/VMManagementFactory.java20
1 files changed, 16 insertions, 4 deletions
diff --git a/libjava/java/lang/management/VMManagementFactory.java b/libjava/java/lang/management/VMManagementFactory.java
index f10497014b4..35b15e360f1 100644
--- a/libjava/java/lang/management/VMManagementFactory.java
+++ b/libjava/java/lang/management/VMManagementFactory.java
@@ -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;
+ }
}