Update the `CacheKey` class used by `ReflectivePropertyAccessor` to
include if the target object is class. The prevents an incorrect cache
hit from being returned when a property with the same name is read on
both an object and its class. For example:
#{class.name}
#{name}
Issue: SPR-10486
@ -73,7 +74,7 @@ public class ReflectivePropertyAccessor implements PropertyAccessor {
@@ -73,7 +74,7 @@ public class ReflectivePropertyAccessor implements PropertyAccessor {
@ -113,7 +114,7 @@ public class ReflectivePropertyAccessor implements PropertyAccessor {
@@ -113,7 +114,7 @@ public class ReflectivePropertyAccessor implements PropertyAccessor {
@ -172,7 +173,7 @@ public class ReflectivePropertyAccessor implements PropertyAccessor {
@@ -172,7 +173,7 @@ public class ReflectivePropertyAccessor implements PropertyAccessor {
@ -214,7 +215,7 @@ public class ReflectivePropertyAccessor implements PropertyAccessor {
@@ -214,7 +215,7 @@ public class ReflectivePropertyAccessor implements PropertyAccessor {
@ -271,7 +272,7 @@ public class ReflectivePropertyAccessor implements PropertyAccessor {
@@ -271,7 +272,7 @@ public class ReflectivePropertyAccessor implements PropertyAccessor {
@ -431,7 +432,7 @@ public class ReflectivePropertyAccessor implements PropertyAccessor {
@@ -431,7 +432,7 @@ public class ReflectivePropertyAccessor implements PropertyAccessor {
@ -490,9 +491,12 @@ public class ReflectivePropertyAccessor implements PropertyAccessor {
@@ -490,9 +491,12 @@ public class ReflectivePropertyAccessor implements PropertyAccessor {
@ -504,13 +508,23 @@ public class ReflectivePropertyAccessor implements PropertyAccessor {
@@ -504,13 +508,23 @@ public class ReflectivePropertyAccessor implements PropertyAccessor {
@ -1820,6 +1820,19 @@ public class SpelReproTests extends ExpressionTestCase {
@@ -1820,6 +1820,19 @@ public class SpelReproTests extends ExpressionTestCase {
@ -1887,4 +1900,20 @@ public class SpelReproTests extends ExpressionTestCase {
@@ -1887,4 +1900,20 @@ public class SpelReproTests extends ExpressionTestCase {