apache / apache/grails-intellij-plugin
Ambiguous method call with Grails
- Dominant language
- Java
- Stars
- 17
- Forks
- 4
- Avg merge
- 5d 15h
- Merged PRs (30d)
- 4
Description
For Groovy / Grails:
Good code will be reported with a warning (Method call is ambiguous), or with an error if @CompileStatic is used on the method.
This was originally fixed in this issue but it has re-emerged (see the latest comments on the issue).
The code is:
```groovy
import groovy.transform.CompileStatic
class FooController {
def bar() {
render(test: 'ok')
}
@CompileStatic
def baz() {
render test: 'ok'
}
}
```
Using grails grailsVersion=5.3.6
IntelliJ Ultimate Edition Build #IU-241.14494.240, built on March 28, 202
---
*Imported from [IDEA-354989](https://youtrack.jetbrains.com/issue/IDEA-354989) · Type: Bug · Votes: 24*
*Comments, attachments, dates and reporter are not part of the export — follow the link above for the full history.*
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the example in a Grails 5.3.6 project using IntelliJ IDEA Ultimate build #IU-241.14494.240, checking both bar() and the @CompileStatic baz() method. Confirm that render(test: 'ok') is reported as ambiguous and that the static version reports an error; done means the false warning and error no longer appear for this code.
Written by the indexing model from the issue text.
Assessment
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100