Skip to content

Commit

Permalink
FORGE-1734 - CCE when starting Forge 2 in Eclipse.
Browse files Browse the repository at this point in the history
  • Loading branch information
lincolnthree committed Apr 4, 2014
1 parent ae23876 commit 8eec1ef
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,13 @@ private Object enhanceResult(final Method method, Object result) throws Exceptio
else if (returnTypeNeedsEnhancement(returnType, result, unwrappedResultType))
{
result = stripClassLoaderAdapters(result);
final Class<?>[] resultHierarchy = removeProxyTypes(ProxyTypeInspector.getCompatibleClassHierarchy(
callingLoader,
result.getClass()));
Class<?>[] resultHierarchy = removeProxyTypes(ProxyTypeInspector.getCompatibleClassHierarchy(
callingLoader, result.getClass()));

final Class<?>[] unwrappedResultHierarchy = removeProxyTypes(ProxyTypeInspector
.getCompatibleClassHierarchy(callingLoader, unwrappedResultType));

resultHierarchy = mergeHierarchies(resultHierarchy, unwrappedResultHierarchy);

Class<?>[] returnTypeHierarchy = removeProxyTypes(ProxyTypeInspector.getCompatibleClassHierarchy(
callingLoader, returnType));
Expand Down

0 comments on commit 8eec1ef

Please sign in to comment.