Re: [PR] GROOVY-11614: Enums in switch/case statements that are not fully qual… [groovy]

2025-04-16 Thread via GitHub
codecov-commenter commented on PR #2199: URL: https://github.com/apache/groovy/pull/2199#issuecomment-2811947062 ## [Codecov](https://app.codecov.io/gh/apache/groovy/pull/2199?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&ut

[jira] [Commented] (GROOVY-11614) Enums in switch/case statements that are not fully qualified will cause a groovy compile error but Java requires enums to "not" be fully qualified

2025-04-16 Thread ASF GitHub Bot (Jira)
[ https://issues.apache.org/jira/browse/GROOVY-11614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17945241#comment-17945241 ] ASF GitHub Bot commented on GROOVY-11614: - paulk-asert opened a new pull reques

[PR] GROOVY-11614: Enums in switch/case statements that are not fully qual… [groovy]

2025-04-16 Thread via GitHub
paulk-asert opened a new pull request, #2199: URL: https://github.com/apache/groovy/pull/2199 …ified will cause a groovy compile error for switch expressions even with type checking enabled -- This is an automated message from the Apache Git Service. To respond to the message, please log

[jira] [Commented] (GROOVY-11320) Unable to resolve class when putting variables into brackets.

2025-04-16 Thread Paul King (Jira)
[ https://issues.apache.org/jira/browse/GROOVY-11320?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17945231#comment-17945231 ] Paul King commented on GROOVY-11320: Another workaround is to use AST transforms, e

[jira] [Commented] (GROOVY-10724) Parrot parser incorrectly treats an expression wrapped in parentheses as a cast

2025-04-16 Thread Paul King (Jira)
[ https://issues.apache.org/jira/browse/GROOVY-10724?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17945229#comment-17945229 ] Paul King commented on GROOVY-10724: Workarounds for: (a) in [2, 3, 4] {code:groovy

[PR] GROOVY-11623: STC: support return of list expression for array method [groovy]

2025-04-16 Thread via GitHub
eric-milles opened a new pull request, #2198: URL: https://github.com/apache/groovy/pull/2198 ```groovy String[] foo() { ['a','b','c' ] } ``` and ```groovy @interface A { String[] value() default [] } ``` -- This is an automated message from the Apache G

Re: [PR] Bump com.gradle.develocity from 3.19.2 to 4.0 [groovy]

2025-04-16 Thread via GitHub
dependabot[bot] commented on PR #2181: URL: https://github.com/apache/groovy/pull/2181#issuecomment-2810755280 OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let

[jira] [Assigned] (GROOVY-11624) Unable to use statically imported const string in annotation

2025-04-16 Thread Eric Milles (Jira)
[ https://issues.apache.org/jira/browse/GROOVY-11624?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Eric Milles reassigned GROOVY-11624: Assignee: Eric Milles > Unable to use statically imported const string in annotation > -

Re: [PR] GROOVY-11623: STC: support return of list expression for array method [groovy]

2025-04-16 Thread via GitHub
codecov-commenter commented on PR #2198: URL: https://github.com/apache/groovy/pull/2198#issuecomment-2810774461 ## [Codecov](https://app.codecov.io/gh/apache/groovy/pull/2198?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&ut

[jira] [Commented] (GROOVY-11623) Default values for array members in annotations

2025-04-16 Thread ASF GitHub Bot (Jira)
[ https://issues.apache.org/jira/browse/GROOVY-11623?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17945171#comment-17945171 ] ASF GitHub Bot commented on GROOVY-11623: - codecov-commenter commented on PR #2

Re: [PR] Bump com.gradle.develocity from 3.19.2 to 4.0 [groovy]

2025-04-16 Thread via GitHub
daniellansun closed pull request #2181: Bump com.gradle.develocity from 3.19.2 to 4.0 URL: https://github.com/apache/groovy/pull/2181 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific com

[jira] [Commented] (GROOVY-11621) Assigning null to a List or Map using bracket notation does not work with @CompileStatic

2025-04-16 Thread ASF GitHub Bot (Jira)
[ https://issues.apache.org/jira/browse/GROOVY-11621?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17945170#comment-17945170 ] ASF GitHub Bot commented on GROOVY-11621: - daniellansun commented on PR #2197:

[jira] [Commented] (GROOVY-11623) Default values for array members in annotations

2025-04-16 Thread ASF GitHub Bot (Jira)
[ https://issues.apache.org/jira/browse/GROOVY-11623?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17945169#comment-17945169 ] ASF GitHub Bot commented on GROOVY-11623: - eric-milles opened a new pull reques

Re: [PR] GROOVY-11621: STC: fix for `list[idx] = null` and `map[key] = null` [groovy]

2025-04-16 Thread via GitHub
codecov-commenter commented on PR #2197: URL: https://github.com/apache/groovy/pull/2197#issuecomment-2810018087 ## [Codecov](https://app.codecov.io/gh/apache/groovy/pull/2197?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&ut

[jira] [Commented] (GROOVY-11621) Assigning null to a List or Map using bracket notation does not work with @CompileStatic

2025-04-16 Thread ASF GitHub Bot (Jira)
[ https://issues.apache.org/jira/browse/GROOVY-11621?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17945119#comment-17945119 ] ASF GitHub Bot commented on GROOVY-11621: - codecov-commenter commented on PR #2

[jira] [Commented] (GROOVY-11621) Assigning null to a List or Map using bracket notation does not work with @CompileStatic

2025-04-16 Thread ASF GitHub Bot (Jira)
[ https://issues.apache.org/jira/browse/GROOVY-11621?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17945114#comment-17945114 ] ASF GitHub Bot commented on GROOVY-11621: - eric-milles opened a new pull reques

[PR] GROOVY-11621: STC: fix for `list[idx] = null` and `map['key'] = null` [groovy]

2025-04-16 Thread via GitHub
eric-milles opened a new pull request, #2197: URL: https://github.com/apache/groovy/pull/2197 Special checks for `putAt` lack `null` handling. Adding "isNullConstant(enclosingExpressionRHS) ? UNKNOWN_PARAMETER_TYPE :" to `getType` would expose to all STC users/scripts. -- This is an aut

[jira] [Resolved] (GROOVY-11611) Calls to the outer class's super from an inner class does not work

2025-04-16 Thread Eric Milles (Jira)
[ https://issues.apache.org/jira/browse/GROOVY-11611?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Eric Milles resolved GROOVY-11611. -- Fix Version/s: 5.0.0-alpha-13 Resolution: Fixed > Calls to the outer class's super fro

[jira] [Commented] (GROOVY-11611) Calls to the outer class's super from an inner class does not work

2025-04-16 Thread ASF GitHub Bot (Jira)
[ https://issues.apache.org/jira/browse/GROOVY-11611?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17945103#comment-17945103 ] ASF GitHub Bot commented on GROOVY-11611: - eric-milles merged PR #2192: URL: ht

Re: [PR] GROOVY-11611: outer class super method invocation [groovy]

2025-04-16 Thread via GitHub
eric-milles merged PR #2192: URL: https://github.com/apache/groovy/pull/2192 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@g

[jira] [Updated] (GROOVY-11621) Assigning null to a List or Map using bracket notation does not work with @CompileStatic

2025-04-16 Thread Eric Milles (Jira)
[ https://issues.apache.org/jira/browse/GROOVY-11621?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Eric Milles updated GROOVY-11621: - Issue Type: Bug (was: Improvement) > Assigning null to a List or Map using bracket notation do

[jira] [Updated] (GROOVY-11621) Assigning null to a List or Map using bracket notation does not work with @CompileStatic

2025-04-16 Thread Eric Milles (Jira)
[ https://issues.apache.org/jira/browse/GROOVY-11621?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Eric Milles updated GROOVY-11621: - Component/s: Static Type Checker (was: Compiler) > Assigning null to a Lis

[jira] [Updated] (GROOVY-11621) Assigning null to a List or Map using bracket notation does not work with @CompileStatic

2025-04-16 Thread Eric Milles (Jira)
[ https://issues.apache.org/jira/browse/GROOVY-11621?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Eric Milles updated GROOVY-11621: - Description: I was recently experimenting with @CompileStatic for performance improvements and

[jira] [Updated] (GROOVY-11623) Default values for array members in annotations

2025-04-16 Thread Eric Milles (Jira)
[ https://issues.apache.org/jira/browse/GROOVY-11623?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Eric Milles updated GROOVY-11623: - Language: groovy > Default values for array members in annotations > --

[jira] [Assigned] (GROOVY-11623) Default values for array members in annotations

2025-04-16 Thread Eric Milles (Jira)
[ https://issues.apache.org/jira/browse/GROOVY-11623?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Eric Milles reassigned GROOVY-11623: Assignee: Eric Milles > Default values for array members in annotations > --

[jira] [Commented] (GROOVY-11624) Unable to use statically imported const string in annotation

2025-04-16 Thread Saravanan (Jira)
[ https://issues.apache.org/jira/browse/GROOVY-11624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17945028#comment-17945028 ] Saravanan commented on GROOVY-11624: This also fails with a similar error (it seems

[jira] [Created] (GROOVY-11624) Unable to use statically imported const string in annotation

2025-04-16 Thread Saravanan (Jira)
Saravanan created GROOVY-11624: -- Summary: Unable to use statically imported const string in annotation Key: GROOVY-11624 URL: https://issues.apache.org/jira/browse/GROOVY-11624 Project: Groovy

[jira] [Commented] (GROOVY-11615) Groovy has trouble type inferencing for Collections. The offender is Collectors.asBlah set of methods. It needs the generic type to be added explicitly

2025-04-16 Thread Paul King (Jira)
[ https://issues.apache.org/jira/browse/GROOVY-11615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17944981#comment-17944981 ] Paul King commented on GROOVY-11615: Just adding a self-contained runnable example:

[jira] [Commented] (GROOVY-11615) Groovy has trouble type inferencing for Collections. The offender is Collectors.asBlah set of methods. It needs the generic type to be added explicitly

2025-04-16 Thread Saravanan (Jira)
[ https://issues.apache.org/jira/browse/GROOVY-11615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17944963#comment-17944963 ] Saravanan commented on GROOVY-11615: You are right, it works in 5.x, but this does

[jira] [Comment Edited] (GROOVY-11615) Groovy has trouble type inferencing for Collections. The offender is Collectors.asBlah set of methods. It needs the generic type to be added explicitly

2025-04-16 Thread Saravanan (Jira)
[ https://issues.apache.org/jira/browse/GROOVY-11615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17944963#comment-17944963 ] Saravanan edited comment on GROOVY-11615 at 4/16/25 7:06 AM:

[jira] [Comment Edited] (GROOVY-11615) Groovy has trouble type inferencing for Collections. The offender is Collectors.asBlah set of methods. It needs the generic type to be added explicitly

2025-04-16 Thread Saravanan (Jira)
[ https://issues.apache.org/jira/browse/GROOVY-11615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17944963#comment-17944963 ] Saravanan edited comment on GROOVY-11615 at 4/16/25 7:06 AM: