We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Let's say we have controller MyController with @With annotation:
MyController
@With
@With(MySecurity.class) public class MyController extends Controller { } public class MySecurity extends Controller { @Before public void myNonstaticBeforeMethod() { } @After public void myNonstaticAfterMethod() { } }
When trying to execute any action of MyController, Play framework throws an exception:
Oops: IllegalArgumentException Unexpected error : Unexpected Error, caused by exception IllegalArgumentException: object is not an instance of declaring class play.exceptions.UnexpectedException: Unexpected Error at play.mvc.ActionInvoker.invoke(ActionInvoker.java:208) at Invocation.HTTP Request(Play!) Caused by: java.lang.IllegalArgumentException: object is not an instance of declaring class at play.mvc.ActionInvoker.invoke(ActionInvoker.java:482) at play.mvc.ActionInvoker.invokeControllerMethod(ActionInvoker.java:467) at play.mvc.ActionInvoker.invokeControllerMethod(ActionInvoker.java:436) at play.mvc.ActionInvoker.handleBefores(ActionInvoker.java:299) at play.mvc.ActionInvoker.invoke(ActionInvoker.java:144) ... 1 more
The text was updated successfully, but these errors were encountered:
Fixes playframework#1100 add support for non-static @before and @after …
43863a6
…methods in @with class
27b1ae3
Merge pull request #1101 from codeborne/support-nonstatic-befores
2dcb3ae
Fixes #1100 add support for non-static @before and @after methods …
asolntsev
No branches or pull requests
Let's say we have controller
MyController
with@With
annotation:When trying to execute any action of
MyController
, Play framework throws an exception:The text was updated successfully, but these errors were encountered: