diff --git a/itest/context/src/main/java/org/springframework/security/integration/python/PythonInterpreterPreInvocationAdvice.java b/itest/context/src/main/java/org/springframework/security/integration/python/PythonInterpreterPreInvocationAdvice.java index 80aa81c7e6..8e0fe5e53d 100644 --- a/itest/context/src/main/java/org/springframework/security/integration/python/PythonInterpreterPreInvocationAdvice.java +++ b/itest/context/src/main/java/org/springframework/security/integration/python/PythonInterpreterPreInvocationAdvice.java @@ -43,7 +43,7 @@ public class PythonInterpreterPreInvocationAdvice implements PreInvocationAuthor throw new IllegalStateException("Python script did not set the permit flag"); } - return Py.tojava(allowed, Boolean.class); + return (Boolean)Py.tojava(allowed, Boolean.class); } private Map createArgumentMap(MethodInvocation mi) { diff --git a/core/src/test/resources/someMethod.py b/itest/context/src/test/resources/someMethod.py similarity index 100% rename from core/src/test/resources/someMethod.py rename to itest/context/src/test/resources/someMethod.py