Details
-
Wish
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
None
-
None
-
None
Description
Maybe there is something similar already there but I can remember seeing something like this:
Currently only way how to create type-safe DSL is to use method calls with normal arguments and a closure with @DelegatesTo.
I would be great to have annotation similar to @DelegatesTo accepting a single class parameter which will be applied to the Map argument of the method and static type checker will check that there are appropriate setters in the class for the given arguments of the methods.
As second step, it will be great if we'll be able to incorporate this into most popular IDEs (or at least IntelliJ) for content assist while you're entering these arguments.
Attachments
Issue Links
- duplicates
-
GROOVY-7632 Groovy named parameters static check
- Closed
- is related to
-
GROOVY-7632 Groovy named parameters static check
- Closed