You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by hl...@apache.org on 2011/04/30 00:56:10 UTC
svn commit: r1098005 -
/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/ComponentInstantiatorSourceImpl.java
Author: hlship
Date: Fri Apr 29 22:56:10 2011
New Revision: 1098005
URL: http://svn.apache.org/viewvc?rev=1098005&view=rev
Log:
TAP5-853: Use correct class loader hierarchy to prevent ClassCastExceptions
Modified:
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/ComponentInstantiatorSourceImpl.java
Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/ComponentInstantiatorSourceImpl.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/ComponentInstantiatorSourceImpl.java?rev=1098005&r1=1098004&r2=1098005&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/ComponentInstantiatorSourceImpl.java (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/ComponentInstantiatorSourceImpl.java Fri Apr 29 22:56:10 2011
@@ -132,10 +132,10 @@ public final class ComponentInstantiator
*/
private void initializeService()
{
- classFactory = new ClassFactoryImpl(parent, logger);
-
manager = new PlasticManager(parent, this, controlledPackageNames);
+ classFactory = new ClassFactoryImpl(manager.getClassLoader(), logger);
+
proxyFactory = new PlasticProxyFactoryImpl(classFactory, manager.getClassLoader());
classToInstantiator.clear();