[jira] [Commented] (GROOVY-8888) Strict @NamedParams

2018-11-19 Thread Paul King (JIRA)


[ 
https://issues.apache.org/jira/browse/GROOVY-?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16692282#comment-16692282
 ] 

Paul King commented on GROOVY-:
---

I'd expect you'd see it with the 2.5.5 SNAPSHOT if no caching is going on:

https://github.com/apache/groovy/blob/GROOVY_2_5_X/src/test/groovy/NamedParameterTest.groovy#L97

It should also be in the latest 3.0.0 snapshot. We aren't going forward with 
2.6, so I wouldn't expect to see it there.

> Strict @NamedParams
> ---
>
> Key: GROOVY-
> URL: https://issues.apache.org/jira/browse/GROOVY-
> Project: Groovy
>  Issue Type: Improvement
>Reporter: Vladimír Oraný
>Priority: Major
>
> Thanks, [~paulk] for explaining how does all the "@Named*" annotation works. 
> I have one suggestion for improvement:
> At the moment when you add an extra entry in the map, the static compiler 
> won't complain. Would be nice to add "strict" property to "@NamedParams" 
> which will make any additional entry illegal.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (GROOVY-8888) Strict @NamedParams

2018-11-19 Thread JIRA


[ 
https://issues.apache.org/jira/browse/GROOVY-?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16691513#comment-16691513
 ] 

Vladimír Oraný commented on GROOVY-:


I can't see the "unknown" parameter for "@NamedParams" annotation in the latest 
snapshot from here:

[https://oss.jfrog.org/artifactory/oss-snapshot-local/org/codehaus/groovy/groovy/2.5.5-SNAPSHOT/]

or here

[https://oss.jfrog.org/artifactory/oss-snapshot-local/org/codehaus/groovy/groovy/2.6.0-SNAPSHOT/]

 

Am I missing something?

> Strict @NamedParams
> ---
>
> Key: GROOVY-
> URL: https://issues.apache.org/jira/browse/GROOVY-
> Project: Groovy
>  Issue Type: Improvement
>Reporter: Vladimír Oraný
>Priority: Major
>
> Thanks, [~paulk] for explaining how does all the "@Named*" annotation works. 
> I have one suggestion for improvement:
> At the moment when you add an extra entry in the map, the static compiler 
> won't complain. Would be nice to add "strict" property to "@NamedParams" 
> which will make any additional entry illegal.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (GROOVY-8888) Strict @NamedParams

2018-11-18 Thread Paul King (JIRA)


[ 
https://issues.apache.org/jira/browse/GROOVY-?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16690850#comment-16690850
 ] 

Paul King commented on GROOVY-:
---

As per GROOVY-7632, this is a 2.5.5+ feature. But if you can test out the 
snapshot, that would be great.

> Strict @NamedParams
> ---
>
> Key: GROOVY-
> URL: https://issues.apache.org/jira/browse/GROOVY-
> Project: Groovy
>  Issue Type: Improvement
>Reporter: Vladimír Oraný
>Priority: Major
>
> Thanks, [~paulk] for explaining how does all the "@Named*" annotation works. 
> I have one suggestion for improvement:
> At the moment when you add an extra entry in the map, the static compiler 
> won't complain. Would be nice to add "strict" property to "@NamedParams" 
> which will make any additional entry illegal.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)