[jboss-cvs] JBossAS SVN: r60388 - branches/Branch_4_2/aspects/src/main/org/jboss/aop/deployment.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Feb 7 11:38:12 EST 2007
Author: kabir.khan at jboss.com
Date: 2007-02-07 11:38:12 -0500 (Wed, 07 Feb 2007)
New Revision: 60388
Modified:
branches/Branch_4_2/aspects/src/main/org/jboss/aop/deployment/AspectManagerService.java
Log:
[JBAOP-357] Preload HeirarchicalLoaderRepository3 so that JRockit does not need to load up that class as part of weaving classes
Modified: branches/Branch_4_2/aspects/src/main/org/jboss/aop/deployment/AspectManagerService.java
===================================================================
--- branches/Branch_4_2/aspects/src/main/org/jboss/aop/deployment/AspectManagerService.java 2007-02-07 16:37:16 UTC (rev 60387)
+++ branches/Branch_4_2/aspects/src/main/org/jboss/aop/deployment/AspectManagerService.java 2007-02-07 16:38:12 UTC (rev 60388)
@@ -61,6 +61,14 @@
extends ServiceMBeanSupport
implements AspectManagerServiceMBean, AspectNotificationHandler
{
+ static {
+ //pre-load necessary classes so that we avoid NoClassDefFoundErrors on JRockit when using the RepositoryClassloader hook
+ //When AspectManager.translate() is called the first time, these classes have not been loaded yet, and this is what causes
+ //JRockit to get confused
+ Class clazz = TransformerCommon.class;
+ clazz = HeirarchicalLoaderRepository3.class;
+ }
+
public static final ObjectName DEFAULT_LOADER_REPOSITORY = ObjectNameFactory.create(ServerConstants.DEFAULT_LOADER_NAME);
// Attributes ---------------------------------------------------
More information about the jboss-cvs-commits
mailing list