Avoid class loading during AspectJ expression evaluation
Fixed through downcasting to AspectJ's ReflectionType and ReflectionBasedReferenceTypeDelegate, obtaining the myClass field there. We only fall back to regular class loading if we encounter any other kind of type.
Issue: SPR-11344
(cherry picked from commit c406c56)
@ -144,14 +146,14 @@ public class AspectJExpressionPointcut extends AbstractExpressionPointcut
@@ -144,14 +146,14 @@ public class AspectJExpressionPointcut extends AbstractExpressionPointcut
/**
*Settheparameternamesforthepointcut.
*/
publicvoidsetParameterNames(String[]names){
publicvoidsetParameterNames(String...names){
this.pointcutParameterNames=names;
}
/**
*Settheparametertypesforthepointcut.
*/
publicvoidsetParameterTypes(Class<?>[]types){
publicvoidsetParameterTypes(Class<?>...types){
this.pointcutParameterTypes=types;
}
@ -191,9 +193,9 @@ public class AspectJExpressionPointcut extends AbstractExpressionPointcut
@@ -191,9 +193,9 @@ public class AspectJExpressionPointcut extends AbstractExpressionPointcut
@ -205,8 +207,7 @@ public class AspectJExpressionPointcut extends AbstractExpressionPointcut
@@ -205,8 +207,7 @@ public class AspectJExpressionPointcut extends AbstractExpressionPointcut
@ -252,16 +253,15 @@ public class AspectJExpressionPointcut extends AbstractExpressionPointcut
@@ -252,16 +253,15 @@ public class AspectJExpressionPointcut extends AbstractExpressionPointcut
@ -288,7 +288,15 @@ public class AspectJExpressionPointcut extends AbstractExpressionPointcut
@@ -288,7 +288,15 @@ public class AspectJExpressionPointcut extends AbstractExpressionPointcut
@ -344,14 +352,13 @@ public class AspectJExpressionPointcut extends AbstractExpressionPointcut
@@ -344,14 +352,13 @@ public class AspectJExpressionPointcut extends AbstractExpressionPointcut
@ -361,29 +368,14 @@ public class AspectJExpressionPointcut extends AbstractExpressionPointcut
@@ -361,29 +368,14 @@ public class AspectJExpressionPointcut extends AbstractExpressionPointcut
@ -417,7 +409,8 @@ public class AspectJExpressionPointcut extends AbstractExpressionPointcut
@@ -417,7 +409,8 @@ public class AspectJExpressionPointcut extends AbstractExpressionPointcut
@ -425,21 +418,22 @@ public class AspectJExpressionPointcut extends AbstractExpressionPointcut
@@ -425,21 +418,22 @@ public class AspectJExpressionPointcut extends AbstractExpressionPointcut
@ -620,9 +614,11 @@ public class AspectJExpressionPointcut extends AbstractExpressionPointcut
@@ -620,9 +614,11 @@ public class AspectJExpressionPointcut extends AbstractExpressionPointcut
@ -632,35 +628,34 @@ public class AspectJExpressionPointcut extends AbstractExpressionPointcut
@@ -632,35 +628,34 @@ public class AspectJExpressionPointcut extends AbstractExpressionPointcut