Skip to content

Commit

Permalink
Fix bug with proxy unwrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
lincolnthree committed Jan 26, 2013
1 parent 65299ce commit e3bfa39
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public Object call() throws Exception
{
try
{
if (proxy.getDeclaringClass().equals(toLoader.loadClass(ClassLoaderAdapterProxy.class.getName())))
if (proxy.getDeclaringClass().equals(fromLoader.loadClass(ClassLoaderAdapterProxy.class.getName())))
{
return delegate;
}
Expand Down Expand Up @@ -380,11 +380,6 @@ public boolean isHandled(Method method)
/*
* Helper Types
*/
public static interface ClassLoaderAdapterProxy
{
Object getDelegate();
}

static class ProxyTypeInspector
{
public static Class<?>[] getCompatibleClassHierarchy(ClassLoader loader, Class<?> origin)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package org.jboss.forge.classloader;

public interface ClassLoaderAdapterProxy
{
Object getDelegate();
}

0 comments on commit e3bfa39

Please sign in to comment.