When the parser cannot work out the meaning, it tends to report "unexpected
input". There is a ticket about parser recovery that may address some types of
errors like the extra closing paren in your example. But it has not gotten off
the ground.
For me, adding hooks into visitBinaryExpression is the way to go – I think that
is your option 3. The type-checker could be looking up the method name
associated with the binary operator and then checking as a method call. It
looks like all that is missing and getResultType indicates that all
+1 (binding)
From: Paul King
Sent: Saturday, April 6, 2024 12:32 AM
To: Groovy_Developers
Subject: [EXT] [VOTE] Release Apache Groovy 4.0.21
External Email: Use caution with links and attachments.
Dear development community,
I am happy to start the VOTE thread
+1 (binding)
From: Paul King
Sent: Friday, April 5, 2024 11:18 PM
To: Groovy_Developers
Subject: [EXT] [VOTE] Release Apache Groovy 5.0.0-alpha-8
External Email: Use caution with links and attachments.
Dear development community,
I am happy to start the VOTE
There is so much to unpack here. I'll likely miss key points here, but wanted
to add a couple.
1.
If your goal is to add some ability directly to Java, then a library or an
annotation processor like Vavr or Lombok respectively may be a better approach.
These integrate directly into Java
Same goes for 4.0.20
[cid:7e7a6a1b-cd45-499c-b538-5fc3424defc1]
From: Paul King
Sent: Sunday, March 10, 2024 7:16 PM
To: Groovy_Developers
Subject: [EXT] [VOTE] Release Apache Groovy 4.0.20
External Email: Use caution with links and attachments.
Dear
It does not look like the "raw" fix worked fully.
[cid:3ee4e54f-26b6-4432-9122-c21b2708b19a]
From: Paul King
Sent: Sunday, March 10, 2024 6:04 PM
To: Groovy_Developers
Subject: [EXT] [VOTE] Release Apache Groovy 5.0.0-alpha-7
External Email: Use caution with
+1 (binding)
From: Paul King
Sent: Tuesday, February 27, 2024 5:09 AM
To: Groovy_Developers
Subject: [EXT] [VOTE] Release Apache Groovy 3.0.21
External Email: Use caution with links and attachments.
Dear development community,
I am happy to start the VOTE
Full disclosure, there is a regression in the test case for GROOVY-7456. The
unit test did not catch it since it runs with static compilation on. Setting
it to dynamic mode reproduces the runtime error:
groovy.lang.MissingMethodException: No signature of method: C.g() is applicable
for
+1 (binding)
There is a jar with a "raw" classifier in the distribution. It was not present
in 4.0.18.
[cid:b53c9e4a-1835-49e7-b9aa-8fc09812fef7]
From: Paul King
Sent: Tuesday, February 27, 2024 4:41 AM
To: Groovy_Developers
Subject: [EXT] [VOTE] Release
+1 (binding)
From: Paul King
Sent: Tuesday, February 27, 2024 1:45 AM
To: Groovy_Developers
Subject: [EXT] [VOTE] Release Apache Groovy 5.0.0-alpha-6
External Email: Use caution with links and attachments.
Dear development community,
I am happy to start the
ptimal performance it's
unfortunately not as simple as one method for all lists on one Java version and
another method on a different version.
From: Milles, Eric (TR Technology) via dev
mailto:dev@groovy.apache.org>>
Sent: 22 January 2024 18:04
To: dev@groov
An API like this works fine for straightline code. But if you need to add
instructions conditionally, repeat blocks for additional instances, or other
complex scenarios; builders can quickly break down. I would wait to see how
the class file api shakes out before turning over nearly all of
The new Class File API is for reading not writing, correct? With that in mind,
I think only the ASM decompile package (org.codehaus.groovy.ast.decompiled) is
under consideration. There are already 2 paths taken by ClassNodeResolver
tryAsLoaderClassOrScript. Adding a third option there that
point. I suppose the main benefit is performance-wise
again, as the immutable List/Map could be cached.
From: Milles, Eric (TR Technology) via dev
mailto:dev@groovy.apache.org>>
Sent: 22 January 2024 16:04
To: dev@groovy.apache.org<mailto:dev@groovy.a
Can you just wrap what is presently returned with a call to
Collections.unmodifiableList or Collections.unmodifiableMap?
If the return values of toList() or toMap() from a record do not link to any
internal state, what is the concern if they are mutable or not?
From: Oscar N
Sent: Monday,
+1 (binding)
-Original Message-
From: Paul King
Sent: Tuesday, January 16, 2024 5:47 AM
To: Groovy_Developers
Subject: [EXT] [VOTE] Release Apache Groovy 5.0.0-alpha-5
External Email: Use caution with links and attachments.
Dear development community,
I am happy to start the VOTE
The change to roll back 8854/11267 is quite small if you'd prefer to go that
route.
-Original Message-
From: Milles, Eric (TR Technology)
Sent: Tuesday, January 16, 2024 1:58 PM
To: dev@groovy.apache.org
Subject: RE: [EXT] [VOTE] Release Apache Groovy 4.0.18
+1 (binding)
NOTE: The
+1 (binding)
NOTE: The fix for GROOVY-8854 / GROOVY-11267 caused a regression in GROOVY-8272
/ GROOVY-10312 (super trait static method). I don't think it's enough to hold
up the release.
-Original Message-
From: Paul King
Sent: Monday, January 15, 2024 9:26 PM
To:
+1 (binding)
-Original Message-
From: Paul King
Sent: Monday, December 18, 2023 7:08 PM
To: Groovy_Developers
Subject: [EXT] [VOTE] Release Apache Groovy 5.0.0-alpha-4
External Email: Use caution with links and attachments.
Dear development community,
I am happy to start the VOTE
+1 (binding)
-Original Message-
From: Paul King
Sent: Monday, December 18, 2023 8:28 PM
To: Groovy_Developers
Subject: [EXT] [VOTE] Release Apache Groovy 4.0.17
External Email: Use caution with links and attachments.
Dear development community,
I am happy to start the VOTE thread
+1 (binding)
-Original Message-
From: Paul King
Sent: Monday, December 18, 2023 8:54 PM
To: Groovy_Developers
Subject: [EXT] [VOTE] Release Apache Groovy 3.0.20
External Email: Use caution with links and attachments.
Dear development community,
I am happy to start the VOTE thread
+1 (binding)
-Original Message-
From: Paul King
Sent: Sunday, November 26, 2023 2:58 PM
To: Groovy_Developers
Subject: [EXT] [VOTE] Release Apache Groovy 4.0.16
External Email: Use caution with links and attachments.
Dear development community,
I am happy to start the VOTE thread
+1 (binding)
Here is an additional case that works now given the changes to support
interface default methods. The "A.super.m()" call was previously flagged as an
error but can now be correctly used to disambiguate "m()".
Main.groovy
import p.*
+1 (binding)
-Original Message-
From: Paul King
Sent: Monday, September 11, 2023 4:25 AM
To: Groovy_Developers
Subject: [EXT] [VOTE] Release Apache Groovy 4.0.15
External Email: Use caution with links and attachments.
Dear development community,
I am happy to start the VOTE thread
+1 (binding)
-Original Message-
From: Paul King
Sent: Monday, September 11, 2023 3:21 AM
To: Groovy_Developers
Subject: [EXT] [VOTE] Release Apache Groovy 5.0.0-alpha-2
External Email: Use caution with links and attachments.
Dear development community,
I am happy to start the VOTE
+1 (binding)
From: Paul King
Sent: Friday, August 18, 2023 11:52 PM
To: Groovy_Developers
Subject: [EXT] [VOTE] Release Apache Groovy 3.0.19
External Email: Use caution with links and attachments.
Dear development community,
I am happy to start the VOTE thread for a Groovy 3.0.19 release!
+1 (binding)
From: Paul King
Sent: Friday, August 18, 2023 10:18 PM
To: Groovy_Developers
Subject: [EXT] [VOTE] Release Apache Groovy 4.0.14
External Email: Use caution with links and attachments.
Dear development community,
I am happy to start the VOTE thread for a Groovy 4.0.14 release!
+1 (binding)
-Original Message-
From: Paul King
Sent: Tuesday, August 22, 2023 1:16 AM
To: us...@groovy.apache.org; dev@groovy.apache.org; annou...@apache.org
Subject: [EXT] [ANNOUNCE] Apache Groovy 4.0.14 Released
External Email: Use caution with links and attachments.
Dear
+1 (binding)
From: Paul King
Sent: Friday, August 18, 2023 9:21 PM
To: Groovy_Developers
Subject: [EXT] [VOTE] Release Apache Groovy 5.0.0-alpha-1
External Email: Use caution with links and attachments.
Dear development community,
I am happy to start the VOTE thread for a Groovy
>> Thanks for raising that issue. It has been a limitation for some folks for
>> quite a while. I am very keen to improve our joint compilation process if we
>> can.
>
> I was actually wondering if someone really still cares.
I do get issues quite often (for groovy-eclipse tooling) that expect
+1 (binding)
From: Paul King
Sent: Monday, June 26, 2023 1:32 AM
To: Groovy_Developers
Subject: [EXT] [VOTE] Release Apache Groovy 4.0.13
External Email: Use caution with links and attachments.
Dear development community,
I am happy to start the VOTE thread for a Groovy 4.0.13 release!
+1 (binding)
From: Paul King
Sent: Monday, June 26, 2023 1:51 AM
To: Groovy_Developers
Subject: [EXT] [VOTE] Release Apache Groovy 3.0.18
External Email: Use caution with links and attachments.
Dear development community,
I am happy to start the VOTE thread for a Groovy 3.0.18 release!
> how [t]o do this ... "gradlew publishToMavenLocal"
Does "gradlew install" or "gradlew publish" put the snapshot artifacts in your
local maven repository?
The recent releases section looks to be for the last report.
From: Paul King
Sent: Tuesday, May 9, 2023 7:18 AM
To: Groovy_Developers
Subject: [EXT] [DRAFT] Apache Groovy Board Report May 2023 (reporting on
Feb/Mar/Apr)
External Email: Use caution with links and attachments.
Hi Folks,
Any
Would it be possible to boil this down to a small sample project? It is tough
to diagnose and then try out possible fixes without a good test harness. There
is definitely a lot of code in your TBKMS_Table constructor. There is a lot of
weird stuff in there to unpack.
+1 (binding)
-1
Bug below filed and fixed: https://issues.apache.org/jira/browse/GROOVY-11044
groovy-4.0.12.jar!META-INF/services/org.codehaus.groovy.transform.ASTTransformation
is blank, which breaks @Grab annotations
From: Milles, Eric (TR Technology) via dev
Sent: Thursday, May 4, 2023 12:29 PM
There is one regression caused by the change for GROOVY-11029. I am testing a
fix. The workaround is to remove static compilation or to write "other =
'value'" as "it.other = 'value'" so the "owner.delegate" gets applied properly.
class Bar {
@groovy.beans.Bindable
String baz
String
It is described in GROOVY-9382, GROOVY-10133, GROOVY-10707, GROOVY-10821 and
possibly others.
"""
This was an intentional change for Groovy 4. There was much discussion and it
was noted as a breaking change, but may not have been that prominent in the
release notes. There are a few edge cases
You can try visiting at an earlier compile phase (maybe before instruction
selection) to see the AST before some SC transforms are applied. Otherwise, I
have used the source location as a key to understand if something is coming in
again. Often generated methods will include some of the
+1 (binding)
+1 (binding)
+1 (binding)
+1 (binding)
From: Paul King
Sent: Thursday, March 9, 2023 1:22 AM
To: Groovy_Developers
Subject: [EXT] [VOTE] Release Apache Groovy 4.0.10
External Email: Use caution with links and attachments.
Dear development community,
I am happy to start the VOTE thread for a Groovy 4.0.10 release!
+1 (binding)
From: Paul King
Sent: Wednesday, March 8, 2023 11:40 PM
To: Groovy_Developers
Subject: [EXT] [VOTE] Release Apache Groovy 3.0.16
External Email: Use caution with links and attachments.
Dear development community,
I am happy to start the VOTE thread for a Groovy 3.0.16 release!
Another thought would be to convert this code-based design to a data-driven
approach. Would an in memory database or a JSON/XML resource file be a better
place to represent and store the 1200+ entities?
-Original Message-
From: Milles, Eric (TR Technology)
Sent: Saturday, February 25,
These are workaround ideas, so please excuse the design choices.
// anonymous inner approach
enum E {
A() {
final String thing = "DEV_PR"
// add read-only properties or getter methods for Type1.M2, Type1.DEVELOPER,
"Progr", "Programmer", [cat.WHITE_COLLAR, cat.PROPELLERHEAD]
},
B()
+1 (binding)
From: Paul King
Sent: Sunday, February 5, 2023 5:09 PM
To: Groovy_Developers
Subject: [EXT] [VOTE] Release Apache Groovy 4.0.9
External Email: Use caution with links and attachments.
Dear development community,
I am happy to start the VOTE thread for a Groovy 4.0.9 release!
+1 (binding)
From: Paul King
Sent: Sunday, February 5, 2023 2:30 PM
To: Groovy_Developers
Subject: [EXT] [VOTE] Release Apache Groovy 3.0.15
External Email: Use caution with links and attachments.
Dear development community,
I am happy to start the VOTE thread for a Groovy 3.0.15 release!
Paul,
I'd like to get a fix in for GROOVY-10911 before the deadline. I haven't
gotten to it yet, but the submitter has now provided a recreation script, so it
should take more than another day.
From: Paul King
Sent: Wednesday, February 1, 2023 6:43 AM
To: Groovy_Developers
Subject: [EXT]
+1 (binding)
+1 (binding)
> quite a lot of changes are required to support Java 16+
Yes, for proper proxy and default method support there are a lot of changes.
Not asking for a backport on that stuff. ASM 9.4 is required to parse the
class files created by Java 19 target. FYI, I updated ASM from 9.3 to 9.4 for
I had a developer comment that Java 19 required an update from Groovy 3 to
Groovy 4 (due to ASM). Where are we with regards to ASM versions for Groovy
2.5, 3.0, 4.0 and 5.0?
You have the option of rolling back to 4.0.6 if 4.0.7 is a blocker. And in the
specific case of GROOVY-10890, you can provide type arguments instead of using
diamond constructor.
I would like to get some more burn in time for 4.0.7 -- there are lots of users
on holiday break in December.
+1 (binding)
+1 (binding)
+1 (binding)
True, no direct equivalents for associateBy and associateWithValue. But
"collectEntries{ [it.toLowerCase(), it] }" is pretty succinct.
If you wanted to extend with just one new extension of collectEntries, I think
".collectEntries(keyFun, Function.identity())" and
GROOVY-9064 [1] has further discussion on this topic. It is also the cause for
GROOVY-10120 [2] for us. The interface type carries proper generics info but
the override method on the implementation class has none (for some odd reason).
[1] https://issues.apache.org/jira/browse/GROOVY-9064
[2]
+1 (binding)
From: Guillaume Laforge
Sent: Friday, October 14, 2022 1:23 AM
To: dev@groovy.apache.org
Subject: [EXT] Re: [VOTE] Release Apache Groovy 4.0.6
External Email: Use caution with links and attachments.
+1 (binding)
On Thu, Oct 13, 2022 at 8:46 PM Andres Almiray
+1 (binding)
-Original Message-
From: Paul King
Sent: Wednesday, October 12, 2022 10:59 PM
To: Groovy_Developers
Subject: [EXT] [VOTE] Release Apache Groovy 2.5.19
External Email: Use caution with links and attachments.
Dear development community,
I am happy to start the VOTE thread
Just a quick update on this. The current Groovy 5 branch has been moved to
JDK11 minimum. We have started to make use of new Java APIs and removed target
bytecode support below 11.
Enhancements/fixes currently in Groovy 5:
I think these are the relevant cites (below). Long story short, due to the
potential for circular dependencies, the Groovy is processed minimally to be
able to generate “stub” information that the Java compiler can use to make
links. I have run some experiments where there is more stages of
This has been reported under a few different guises. There are some other
tickets for ranges and negative indexes.
https://issues.apache.org/jira/browse/GROOVY-6193
https://issues.apache.org/jira/browse/GROOVY-4652
https://issues.apache.org/jira/browse/GROOVY-1740
+1 (binding)
Best to open a new Jira ticket for this. There were a number of scenarios that
had to be handled for safe-indexing versus ternary expression. Looks like
there are still some out there.
Here is one example: https://issues.apache.org/jira/browse/GROOVY-9561
+1 (binding)
+1 (binding)
-Original Message-
From: Paul King
Sent: Wednesday, July 20, 2022 1:40 AM
To: Groovy_Developers
Subject: [EXT] [VOTE] Release Apache Groovy 4.0.4
External Email: Use caution with links and attachments.
Dear development community,
I am happy to start the VOTE thread for
+1 (binding)
-Original Message-
From: Paul King
Sent: Tuesday, July 19, 2022 9:08 PM
To: Groovy_Developers
Subject: [EXT] [VOTE] Release Apache Groovy 3.0.12
External Email: Use caution with links and attachments.
Dear development community,
I am happy to start the VOTE thread for a
+1 (binding)
-Original Message-
From: Paul King
Sent: Tuesday, July 19, 2022 8:33 PM
To: Groovy_Developers
Subject: [EXT] [VOTE] Release Apache Groovy 2.5.18
External Email: Use caution with links and attachments.
Dear development community,
I am happy to start the VOTE thread for a
72 matches
Mail list logo