From c7a2e12c654571a6639d0e7a4a8fe5e876d72812 Mon Sep 17 00:00:00 2001 From: Luke Taylor Date: Mon, 11 May 2009 06:03:59 +0000 Subject: [PATCH] Moved python script to correct directory --- .../python/PythonInterpreterPreInvocationAdvice.java | 2 +- {core => itest/context}/src/test/resources/someMethod.py | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename {core => itest/context}/src/test/resources/someMethod.py (100%) 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