[Fedora-directory-commits] console/src/com/netscape/management/client/util ClassLoaderUtil.java, 1.2, 1.3 Debug.java, 1.1.1.1, 1.2

Richard Allen Megginson (rmeggins) fedora-directory-commits at redhat.com
Tue Jul 15 17:27:01 UTC 2008


Author: rmeggins

Update of /cvs/dirsec/console/src/com/netscape/management/client/util
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv15441/console/src/com/netscape/management/client/util

Modified Files:
	ClassLoaderUtil.java Debug.java 
Log Message:
Bump version to 1.1.2
Disable SSLv2 ciphers by default - they are disabled on the server side anyway, so you can't enable them, but this just makes it clear what's going on
Do not use thread.stop - this causes threading issues with modern JVMs
Added support for debugging in Eclipse
Added more debugging log information



Index: ClassLoaderUtil.java
===================================================================
RCS file: /cvs/dirsec/console/src/com/netscape/management/client/util/ClassLoaderUtil.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ClassLoaderUtil.java	29 Nov 2005 18:37:17 -0000	1.2
+++ ClassLoaderUtil.java	15 Jul 2008 17:26:59 -0000	1.3
@@ -106,6 +106,15 @@
             if (iAtSign < 0) {
                 return Class.forName(sFullClassName); // use default system class loader
             }
+            
+            if (Debug.noJarsEnabled()) {
+            	if (iAtSign >= 0) {
+            		sFullClassName = sFullClassName.substring(0, iAtSign);
+            	}
+            	// for debuggers - do not download and install and use a jar file
+            	// assume the local class loader has all of the classes
+            	return Class.forName(sFullClassName); // use default system class loader
+            }
 
             if (Debug.isEnabled()) {
                 Debug.println(1, "ClassLoaderUtil.getClass("+sFullClassName+")");


Index: Debug.java
===================================================================
RCS file: /cvs/dirsec/console/src/com/netscape/management/client/util/Debug.java,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -r1.1.1.1 -r1.2
--- Debug.java	18 Jul 2005 00:34:26 -0000	1.1.1.1
+++ Debug.java	15 Jul 2008 17:26:59 -0000	1.2
@@ -43,6 +43,7 @@
     public static final String TYPE_JSS  = "jss";  // jss calls
     public static final String TYPE_HTTP = "http"; // http calls
     public static final String TYPE_RSPTIME = "rsptime"; // response time
+    public static final String TYPE_NOJARS = "nojars"; // no jars - for debuggers
 
     //Predefined keywords used for gc trace type
     public static final String KW_CREATE = "Create   ";
@@ -54,7 +55,8 @@
 
     // Flags "enabled" for predefined trace types. Fast way to check if a
     // predefined type is enabled, rather than searching _traceTypes list
-    private static boolean _fTraceGC, _fTraceLdap, _fTraceJSS, _fTraceHttp, _fTraceTime;
+    private static boolean _fTraceGC, _fTraceLdap, _fTraceJSS, _fTraceHttp, _fTraceTime,
+    	_fNoJars;
 
     // Flags for show entry options
     public static final int SHOW_INDEX = 1;
@@ -113,6 +115,9 @@
     public static boolean timeTraceEnabled() {
         return _fTraceTime;
     }
+    public static boolean noJarsEnabled() {
+        return _fNoJars;
+    }
     public static int getShowFlags() {
         return _showFlags;
     }
@@ -216,6 +221,9 @@
                             new Date(_appStartTimeStamp)) + " JVM Loaded");
                     _lastTimeStamp = _appStartTimeStamp;
                 }
+            } else if (traceType.equals(TYPE_NOJARS)) {
+            	_fNoJars = true;
+                _traceTypes.addElement(traceType);
             } else {
                 // Bad trace type
                 System.err.println("Bad trace type: " + traceType);
@@ -288,6 +296,7 @@
         usage += "\n"+TYPE_HTTP + "\t\tHTTP Calls";
         usage += "\n"+TYPE_GC + "\t\tGarbage Collection";
         usage += "\n"+TYPE_RSPTIME + "\t\tResponse Time";
+        usage += "\n"+TYPE_NOJARS + "\t\tno jar files - for debuggers";
         usage += "\nDebug Flags:";
         usage += "\nidx\t\tEnumerate debug entries";
         usage += "\nlvl\t\tShow debug level for debug entries";




More information about the Fedora-directory-commits mailing list