From: <ls...@us...> - 2009-04-22 18:45:17
|
Revision: 5335 http://jnode.svn.sourceforge.net/jnode/?rev=5335&view=rev Author: lsantha Date: 2009-04-22 18:45:00 +0000 (Wed, 22 Apr 2009) Log Message: ----------- Fixed security exception & isolate failure. Modified Paths: -------------- classlib6/all/conf/openjdk-annotations.properties classlib6/core/src/openjdk/java/java/io/UnixFileSystem.java Modified: classlib6/all/conf/openjdk-annotations.properties =================================================================== --- classlib6/all/conf/openjdk-annotations.properties 2009-04-22 10:56:34 UTC (rev 5334) +++ classlib6/all/conf/openjdk-annotations.properties 2009-04-22 18:45:00 UTC (rev 5335) @@ -11,6 +11,7 @@ java/awt/KeyboardFocusManager.class=SharedStatics java/awt/Toolkit.class=SharedStatics java/io/VMIOUtils.class=SharedStatics +java/lang/Class.class=SharedStatics java/lang/Thread.class=SharedStatics java/lang/ThreadLocal.class=SharedStatics java/lang/Throwable.class=MagicPermission @@ -35,3 +36,4 @@ sun/misc/SharedSecrets.class=SharedStatics sun/misc/Unsafe.class=SharedStatics,MagicPermission sun/misc/VM.class=SharedStatics +sun/reflect/ReflectionFactory.class=SharedStatics Modified: classlib6/core/src/openjdk/java/java/io/UnixFileSystem.java =================================================================== --- classlib6/core/src/openjdk/java/java/io/UnixFileSystem.java 2009-04-22 10:56:34 UTC (rev 5334) +++ classlib6/core/src/openjdk/java/java/io/UnixFileSystem.java 2009-04-22 18:45:00 UTC (rev 5335) @@ -132,8 +132,8 @@ } public String resolve(File f) { - if (isAbsolute(f)) return f.getPath(); - return resolve(System.getProperty("user.dir"), f.getPath()); + if (isAbsolute(f)) return f.getPath(); //jnode + return resolve(AccessController.doPrivileged(new GetPropertyAction("user.dir")), f.getPath()); } // Caches for canonicalization results to improve startup performance. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |