This patch fixes a couple of problems turned up by reverse JAPI. Changelog:
2006-06-15 Andrew John Hughes <[EMAIL PROTECTED]>
* java/lang/management/ManagementFactory.java:
Add private constructor to prevent instance creation.
* java/lang/management/ManagementPermission.java:
Make final.
--
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/ManagementFactory.java
===================================================================
RCS file:
/cvsroot/classpath/classpath/java/lang/management/ManagementFactory.java,v
retrieving revision 1.2
diff -u -3 -p -u -r1.2 ManagementFactory.java
--- java/lang/management/ManagementFactory.java 11 Jun 2006 21:57:15 -0000
1.2
+++ java/lang/management/ManagementFactory.java 15 Jun 2006 16:19:09 -0000
@@ -71,6 +71,11 @@ public class ManagementFactory
private static RuntimeMXBean runtimeBean;
/**
+ * Private constructor to prevent instance creation.
+ */
+ private ManagementFactory() {}
+
+ /**
* Returns the operating system management bean for the
* operating system on which the virtual machine is running.
*
Index: java/lang/management/ManagementPermission.java
===================================================================
RCS file:
/cvsroot/classpath/classpath/java/lang/management/ManagementPermission.java,v
retrieving revision 1.2
diff -u -3 -p -u -r1.2 ManagementPermission.java
--- java/lang/management/ManagementPermission.java 14 Jun 2006 20:26:12
-0000 1.2
+++ java/lang/management/ManagementPermission.java 15 Jun 2006 16:19:09
-0000
@@ -75,7 +75,7 @@ import java.security.BasicPermission;
* @author Andrew John Hughes ([EMAIL PROTECTED])
* @since 1.5
*/
-public class ManagementPermission
+public final class ManagementPermission
extends BasicPermission
{
signature.asc
Description: Digital signature
