[jboss-remoting-commits] JBoss Remoting SVN: r3869 - remoting2/branches/2.x/src/tests/org/jboss/test/remoting/marshall/dynamic/local.
jboss-remoting-commits at lists.jboss.org
jboss-remoting-commits at lists.jboss.org
Wed Apr 2 01:34:48 EDT 2008
Author: ron.sigal at jboss.com
Date: 2008-04-02 01:34:48 -0400 (Wed, 02 Apr 2008)
New Revision: 3869
Modified:
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/marshall/dynamic/local/MarshallerLoadingTestCase.java
Log:
JBREM-934: Put System.getProperty() call in AccessController.doPrivileged() call.
Modified: remoting2/branches/2.x/src/tests/org/jboss/test/remoting/marshall/dynamic/local/MarshallerLoadingTestCase.java
===================================================================
--- remoting2/branches/2.x/src/tests/org/jboss/test/remoting/marshall/dynamic/local/MarshallerLoadingTestCase.java 2008-04-02 05:34:22 UTC (rev 3868)
+++ remoting2/branches/2.x/src/tests/org/jboss/test/remoting/marshall/dynamic/local/MarshallerLoadingTestCase.java 2008-04-02 05:34:48 UTC (rev 3869)
@@ -22,6 +22,11 @@
package org.jboss.test.remoting.marshall.dynamic.local;
+import java.io.IOException;
+import java.security.AccessController;
+import java.security.PrivilegedActionException;
+import java.security.PrivilegedExceptionAction;
+
import org.apache.log4j.Level;
import org.jboss.jrunit.harness.TestDriver;
@@ -44,7 +49,22 @@
*/
protected String getExtendedServerClasspath()
{
- return System.getProperty("loader.path");
+ String path = null;
+ try
+ {
+ path = (String)AccessController.doPrivileged( new PrivilegedExceptionAction()
+ {
+ public Object run() throws IOException
+ {
+ return System.getProperty("loader.path");
+ }
+ });
+ }
+ catch (PrivilegedActionException e)
+ {
+ }
+
+ return path;
}
/**
More information about the jboss-remoting-commits
mailing list