[jboss-cvs] JBossAS SVN: r64490 - projects/microcontainer/trunk/classloader/src/main/org/jboss/classloader/spi/base.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Aug 7 22:50:48 EDT 2007
Author: adrian at jboss.org
Date: 2007-08-07 22:50:48 -0400 (Tue, 07 Aug 2007)
New Revision: 64490
Modified:
projects/microcontainer/trunk/classloader/src/main/org/jboss/classloader/spi/base/BaseClassLoader.java
Log:
Make the BaseClassLoader Translatable and also protect against null being returned from the transform()
Modified: projects/microcontainer/trunk/classloader/src/main/org/jboss/classloader/spi/base/BaseClassLoader.java
===================================================================
--- projects/microcontainer/trunk/classloader/src/main/org/jboss/classloader/spi/base/BaseClassLoader.java 2007-08-08 00:33:04 UTC (rev 64489)
+++ projects/microcontainer/trunk/classloader/src/main/org/jboss/classloader/spi/base/BaseClassLoader.java 2007-08-08 02:50:48 UTC (rev 64490)
@@ -261,7 +261,9 @@
ProtectionDomain protectionDomain = basePolicy.getProtectionDomain(name, resourcePath);
try
{
- byteCode = policy.transform(name, byteCode, protectionDomain);
+ byte[] transformed = policy.transform(name, byteCode, protectionDomain);
+ if (transformed != null)
+ byteCode = transformed;
}
catch (Throwable t)
{
@@ -290,7 +292,7 @@
* @param name the resource name
* @return the url if found
*/
- URL getResourceLocally(String name)
+ public URL getResourceLocally(String name)
{
return getResourceLocally(name, log.isTraceEnabled());
}
More information about the jboss-cvs-commits
mailing list