Permalink
Browse files

HHH-6496 - Changed line 200 returning real object instead of proxy

  • Loading branch information...
1 parent d3867e9 commit a0bbf0d0296be2f4c13c948bafddd6f9d9238c22 @Kamii Kamii committed with brmeyer Dec 17, 2012
@@ -197,7 +197,7 @@ public Object invoke(
}
returnValue = thisMethod.invoke( target, args );
}
- return returnValue == target ? proxy : returnValue;
+ return returnValue == target && returnValue.getClass().isInstance(proxy) ? proxy : returnValue;
}
catch ( InvocationTargetException ite ) {
throw ite.getTargetException();

0 comments on commit a0bbf0d

Please sign in to comment.