Add module with typed input functionality and tests#684
Conversation
|
Extending ... 8< ...
14:25:14,155 TRACE [play.server.javanet.PlayHandler] ~ parseRequest: begin :GET:/typedinput/generic/2
14:25:14,156 TRACE [play.server.javanet.PlayHandler] ~ parseRequest: end :GET:/typedinput/generic/2
14:25:14,156 TRACE [play.server.javanet.PlayHandler$JavaNetInvocation] ~ run: begin :GET:/typedinput/generic/2
14:25:14,156 TRACE [play.server.javanet.PlayHandler$JavaNetInvocation] ~ init: begin :GET:/typedinput/generic/2
14:25:14,156 TRACE [play.mvc.Router] ~ Route: /typedinput/generic/2 - null
14:25:14,156 TRACE [play.mvc.ActionInvoker] ~ no matching method for printGeneric: printForced
14:25:14,156 TRACE [play.mvc.ActionInvoker] ~ ------- public final play.mvc.results.Result controllers.TypedInputController.printGeneric-vOED-Mk(model.Identifier)
14:25:14,156 TRACE [play.server.javanet.PlayHandler$JavaNetInvocation] ~ init: end true :GET:/typedinput/generic/2
14:25:14,156 WARN [play.mvc.ActionInvoker] ~ It seems you did not compile with the '-parameters' flag.
14:25:14,156 TRACE [play.mvc.ActionInvoker] ~ getActionMethodArgs name [arg0] annotation []
... 8< ...@ThijmenL98 you got the same warning about missing The same warning is there too for the forced way: 14:30:16,669 TRACE [play.server.javanet.PlayHandler] ~ parseRequest: begin :GET:/typedinput/forced/2
14:30:16,669 TRACE [play.server.javanet.PlayHandler] ~ parseRequest: end :GET:/typedinput/forced/2
14:30:16,669 TRACE [play.server.javanet.PlayHandler$JavaNetInvocation] ~ run: begin :GET:/typedinput/forced/2
14:30:16,669 TRACE [play.server.javanet.PlayHandler$JavaNetInvocation] ~ init: begin :GET:/typedinput/forced/2
14:30:16,669 TRACE [play.mvc.Router] ~ Route: /typedinput/forced/2 - null
14:30:16,670 TRACE [play.mvc.ActionInvoker] ~ ------- public final play.mvc.results.Result controllers.TypedInputController.printForced(java.lang.Long)
14:30:16,670 TRACE [play.server.javanet.PlayHandler$JavaNetInvocation] ~ init: end true :GET:/typedinput/forced/2
14:30:16,670 WARN [play.mvc.ActionInvoker] ~ It seems you did not compile with the '-parameters' flag.
14:30:16,670 TRACE [play.mvc.ActionInvoker] ~ getActionMethodArgs name [arg0] annotation []Interestingly those TRACE messages about finding the method is missing if I run the tests manually - the above outputs are from running from IDEA. @asolntsev any hint? |
|
Btw, I'm unable to force push this PR. 😕 |
Oh that's neat! Yeah personally i locally changed the function matcher to be startswith as well, but didn't want to push this change as it is quite a difference compared to equals, and wasn't sure what this could break elsewhere.
Yes I indeed got the parameters warning as well, I assumed it was a "my machine" issue, as i merely copied an existing test suite and mutated it with the desired generic identifier value class, but perhaps it indeed is related to this change. |
14:30:16,670 WARN [play.mvc.ActionInvoker] ~ It seems you did not compile with the '-parameters' flag.
14:30:16,670 TRACE [play.mvc.ActionInvoker] ~ getActionMethodArgs name [arg0] annotation []The "userid missing" |
Configuring the Kotlin compiler options like below in kotlin {
compilerOptions {
javaParameters = true
}
}Running the
But the generic URL is still wrong:
And running the test itself is still wrong for both tests. 🤷 |
|
I'm still unable to force push this PR so I pushed my changes to my own branch. @ThijmenL98: I added two binder, one (a Global one) for the @asolntsev: my fix looks good to me, but I just don't know how to pass that |
No description provided.