Skip to content

Conversation

@eric-milles
Copy link
Member

@eric-milles eric-milles commented Aug 22, 2022

Given choice between methods m(String,Object) and m(Object,String), prefer closer parameter matching. This aligns with the method selection of the dynamic compiler/runtime. There is much more discussion of the various test cases in the ticket.

With selection of getAt(Object,String) over getAt(Map,Object) and putAt(Object,String,Object) over putAt(Map,K,V) there are quite a few STC test issues. Not sure if I should separate them out to a test script just for 8788 or mitigate them with some minor changes or something else. Or if some special STC checks should be added for maps with string keys. I'd be interested to hear how this sits now. @blackdrag @paulk-asert

https://issues.apache.org/jira/browse/GROOVY-8788

https://issues.apache.org/jira/browse/GROOVY-9420
https://issues.apache.org/jira/browse/GROOVY-9069
https://issues.apache.org/jira/browse/GROOVY-8787
https://issues.apache.org/jira/browse/GROOVY-6970
https://issues.apache.org/jira/browse/GROOVY-6849
https://issues.apache.org/jira/browse/GROOVY-6504
https://issues.apache.org/jira/browse/GROOVY-6131
https://issues.apache.org/jira/browse/GROOVY-5700

#1766 (original incarnation of this idea)

@asfgit asfgit force-pushed the GROOVY-8788-take2 branch from f9ef470 to b7c113b Compare August 22, 2022 17:04
@eric-milles eric-milles marked this pull request as ready for review August 22, 2022 17:09
@asfgit asfgit force-pushed the GROOVY-8788-take2 branch from b7c113b to 715ca1d Compare August 22, 2022 17:37
@asfgit asfgit force-pushed the GROOVY-8788-take2 branch from 715ca1d to 5d347c4 Compare August 23, 2022 19:47
@eric-milles eric-milles merged commit 14946ff into master Aug 23, 2022
@eric-milles eric-milles deleted the GROOVY-8788-take2 branch August 23, 2022 20:48
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

Successfully merging this pull request may close these issues.

1 participant