From 85830261515918a244339cba18336a6011520132 Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Mon, 27 Apr 2009 22:54:39 +0000 Subject: [PATCH] revised target class check for non-Spring CGLIB proxy variants (SPR-5694) --- .../main/java/org/springframework/aop/support/AopUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/org.springframework.aop/src/main/java/org/springframework/aop/support/AopUtils.java b/org.springframework.aop/src/main/java/org/springframework/aop/support/AopUtils.java index fc073b6fb4b..429d6ce153f 100644 --- a/org.springframework.aop/src/main/java/org/springframework/aop/support/AopUtils.java +++ b/org.springframework.aop/src/main/java/org/springframework/aop/support/AopUtils.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2008 the original author or authors. + * Copyright 2002-2009 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -110,7 +110,7 @@ public abstract class AopUtils { if (candidate instanceof TargetClassAware) { return ((TargetClassAware) candidate).getTargetClass(); } - if (isCglibProxyClass(candidate.getClass())) { + if (isCglibProxy(candidate)) { return candidate.getClass().getSuperclass(); } return candidate.getClass();