Skip to content
New issue

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

Error while analyzing routes with default parameters #2

Open
rybick opened this issue Mar 10, 2021 · 0 comments
Open

Error while analyzing routes with default parameters #2

rybick opened this issue Mar 10, 2021 · 0 comments

Comments

@rybick
Copy link

rybick commented Mar 10, 2021

Hi! I think I found a bug.

A route defined like this:

GET           /foos                                                       @foo.bar.FooController.getFoos(bars: java.util.List[String] ?= java.util.Collections.emptyList())

Produces an error like this:

[error] swagger - Problem loading class: foo.bar.FooController.getFoos(bars: java.util.List[String] ?= java.util.Collections. java.lang.ClassNotFoundException: class foo.bar.FooController.getFoos(bars: java.util.List[String] ?= java.util.Collections not found

I think it could be solved with changing .lastIndexOf to .indexOf in this line:

val m1 = doc._3.lastIndexOf("(") match {

But, as I'm not an expert in Play framework, I'm not sure whether it won't cause any problems in some other edge cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant