sebb 2003/10/07 11:27:10
Modified: src/jorphan/org/apache/jorphan/collections HashTree.java
Log:
Fix an RMI pronlem: RemoteJMeterIml uses HashTree; the call to getLoggerForClass()
was causing Security violations
Revision Changes Path
1.8 +9 -3
jakarta-jmeter/src/jorphan/org/apache/jorphan/collections/HashTree.java
Index: HashTree.java
===================================================================
RCS file:
/home/cvs/jakarta-jmeter/src/jorphan/org/apache/jorphan/collections/HashTree.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- HashTree.java 15 Sep 2003 23:11:54 -0000 1.7
+++ HashTree.java 7 Oct 2003 18:27:10 -0000 1.8
@@ -88,12 +88,16 @@
* @author Michael Stover (mstover1 at apache.org)
* @see HashTreeTraverser
* @see SearchByClass
- * @version $Revision$
+ * @version $Revision$ Updated on: $Date$
*/
public class HashTree implements Serializable, Map
{
- private static Logger log =
- LoggingManager.getLoggerForClass();
+// GetLoggerForClass() uses ClassContext, which
+// causes a Security violation in RemoteJMeterImpl
+// Currently log is only used by test code, so moved there.
+// N.B. Can still add logging, but would beed to use getLoggerFor() instead
+// private static Logger log =
+// LoggingManager.getLoggerForClass();
/**
* Creates an empty new HashTree.
@@ -1098,6 +1102,8 @@
public void testAdd1() throws Exception
{
+ Logger log =
+ LoggingManager.getLoggerForClass();
Collection treePath =
Arrays.asList(new String[] { "1", "2", "3", "4" });
HashTree tree = new HashTree();
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]