[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Package and Modifier
From: |
Mark Wielaard |
Subject: |
Package and Modifier |
Date: |
Fri, 5 Oct 2001 01:59:27 +0200 |
User-agent: |
Mutt/1.3.22i |
Hi,
I reindented java/lang/Package.java so a diff with the libgcj version
is more clear about the real differences.
--- java/lang/Package.java Thu Oct 4 23:48:02 2001
+++ ../gcc-3-1/libjava/java/lang/Package.java Wed Apr 25 17:45:12 2001
@@ -236,5 +236,6 @@
{
// Get the caller's classloader
- Class c = VMSecurityManager.getClassContext()[1];
+ SecurityManager sm = System.getSecurityManager();
+ Class c = sm.getClassContext()[1];
ClassLoader cl = c.getClassLoader();
@@ -252,5 +253,6 @@
{
// Get the caller's classloader
- Class c = VMSecurityManager.getClassContext()[1];
+ SecurityManager sm = System.getSecurityManager();
+ Class c = sm.getClassContext()[1];
ClassLoader cl = c.getClassLoader();
Note that the libgcj version is clearly wrong since getSecurityManager() can
return null when no SecurityManager is installed. But I am not sure if the
Classpath version really works correctly. Will investigate this.
I also merged java/lang/reflect/Modifier.java with the libgcj version.
No surprises here since the class is so simple. The libgcj version defined
the STRICT constant and isStrict() method. I also took the toString()
implementation from libgcj since it was a little bit more elegant.
2001-10-04 Mark Wielaard <address@hidden>
* java/lang/Package.java: Reindent and fix comments
* java/lang/reflect/Modifier.java: Merge with libgcj
I have committed it to Classpath CVS.
Cheers,
Mark
--
Stuff to read:
<http://www.toad.com/gnu/whatswrong.html>
What's Wrong with Copy Protection, by John Gilmore
- Package and Modifier,
Mark Wielaard <=