-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Routes cannot route a method whose name is a reserved word. #11439
Labels
Comments
I didn't look into the code, however we might be able to escape all the method we generate with backticks, so at least Scala reserved word can be used. However it's not our priority now, since you can easily work around the problem my using other names. If you want to provide a pull request however, feel free to submit one. |
7 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Play Version
2.8.16
API
Java 11, and Scala 2.13.9
Operating System
Windows 11
JDK
Microsoft Build of OpenJSK with Hotspot 11.0.16.1+1 (x64)
Expected Behavior
Create methods for Scala reserved words in your Java or Scala Controller class.
Add the method created in 1. to routes.
Run
sbt run
.I get a compile error.
exports
, which is a reserved word from Scala3, does not result in a compile error, but a warning is displayed in the console.Actual Behavior
It should compile successfully.
The text was updated successfully, but these errors were encountered: