[jboss-remoting-commits] JBoss Remoting SVN: r3820 - remoting2/branches/2.x/src/main/org/jboss/remoting.

jboss-remoting-commits at lists.jboss.org jboss-remoting-commits at lists.jboss.org
Tue Apr 1 22:56:49 EDT 2008


Author: ron.sigal at jboss.com
Date: 2008-04-01 22:56:49 -0400 (Tue, 01 Apr 2008)
New Revision: 3820

Modified:
   remoting2/branches/2.x/src/main/org/jboss/remoting/AbstractInvoker.java
Log:
JBREM-934: Avoid this.getClass() inside PrivilegedAction.

Modified: remoting2/branches/2.x/src/main/org/jboss/remoting/AbstractInvoker.java
===================================================================
--- remoting2/branches/2.x/src/main/org/jboss/remoting/AbstractInvoker.java	2008-04-01 13:55:35 UTC (rev 3819)
+++ remoting2/branches/2.x/src/main/org/jboss/remoting/AbstractInvoker.java	2008-04-02 02:56:49 UTC (rev 3820)
@@ -83,7 +83,7 @@
 	      {
 	         public Object run() throws Exception
 	         {
-	        	 return new ClassByteClassLoader(this.getClass().getClassLoader());
+	        	 return new ClassByteClassLoader(AbstractInvoker.class.getClassLoader());
 	         }
 	      });
 	  }
@@ -271,7 +271,7 @@
 	      {
 	         public Object run() throws Exception
 	         {
-	        	 return new ClassByteClassLoader(this.getClass().getClassLoader());
+	        	 return new ClassByteClassLoader(AbstractInvoker.class.getClassLoader());
 	         }
 	      });
 	  }




More information about the jboss-remoting-commits mailing list