User: user57
Date: 02/02/16 00:50:21
Modified: src/main/org/jboss/system UnifiedClassLoader.java
Log:
o removed invalid getURLs() method. Not sure why we want to return null
for a URLClassLoader. Comments suggested it was to avoid some RMI bloat,
but code that expects a URLClassLoader will expect that this baby will
return something valid. It certainly won't expect a null. If this
behavior of masking the url list is trully desired, then return new URL[0],
but I suggest that is also invalid, since a URLClassLoader with no URLS is
a wasted object... what does one load from it... IMHO (ok not so humble)
it is best not to obfuscate here.
Revision Changes Path
1.6 +2 -12 jboss/src/main/org/jboss/system/UnifiedClassLoader.java
Index: UnifiedClassLoader.java
===================================================================
RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/system/UnifiedClassLoader.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- UnifiedClassLoader.java 12 Feb 2002 02:38:39 -0000 1.5
+++ UnifiedClassLoader.java 16 Feb 2002 08:50:21 -0000 1.6
@@ -20,7 +20,7 @@
* @author <a href="[EMAIL PROTECTED]">Marc Fleury</a>
* @author <a href="[EMAIL PROTECTED]">Christoph G. Jung</a>
* @author <a href="[EMAIL PROTECTED]">Scott Stark/a>
- * @version $Revision: 1.5 $
+ * @version $Revision: 1.6 $
*
* <p><b>20010830 marc fleury:</b>
* <ul>
@@ -37,7 +37,7 @@
implements UnifiedClassLoaderMBean
{
/** One URL per classLoader in our case */
- private URL url = null;
+ private URL url;
/** An SCL can also be loading on behalf of an MBean */
//private ObjectName mbean = null; not used
@@ -147,16 +147,6 @@
public int hashCode()
{
return url.hashCode();
- }
-
- /**
- * This is overriden to return null to avoid excessive and most likely
- * useless RMI annotated codebases. Unfortunately this appears to be the
- * only wat to do this at the moment(JDK1.3.1).
- */
- public URL[] getURLs()
- {
- return null;
}
/**
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development