You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@groovy.apache.org by "Milles, Eric (TR Technology) via dev" <de...@groovy.apache.org> on 2023/05/04 17:29:26 UTC
RE: [EXT] [VOTE] Release Apache Groovy 4.0.12
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 other
}
class Foo {
Bar bar
@groovy.beans.Bindable
String foo
@groovy.transform.CompileStatic
void postConstruct() {
bar = new Bar()
bar.with {
addPropertyChangeListener('baz') { event ->
other = 'value' // ClassCastException: class Foo cannot be cast to class Bar
print 'changed'
}
}
print 'ready;'
}
}
Foo foo = new Foo()
foo.postConstruct()
foo.getBar().setBaz('xxx')
https://github.com/groovy/groovy-eclipse/issues/1412
[CANCELLED][VOTE] Release Apache Groovy 4.0.12
Posted by Paul King <pa...@asert.com.au>.
Definitely looks like it's worth re-rolling the release.
On Fri, May 5, 2023 at 6:17 AM Milles, Eric (TR Technology) via dev <
dev@groovy.apache.org> wrote:
> -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 <de...@groovy.apache.org>
> *Sent:* Thursday, May 4, 2023 12:29 PM
> *To:* dev@groovy.apache.org
> *Subject:* RE: [EXT] [VOTE] Release Apache Groovy 4.0.12
>
>
>
> 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 other
>
> }
>
> class Foo {
>
> Bar bar
>
> @groovy.beans.Bindable
>
> String foo
>
> @groovy.transform.CompileStatic
>
> void postConstruct() {
>
> bar = new Bar()
>
> bar.with {
>
> addPropertyChangeListener('baz') { event ->
>
> other = 'value' // ClassCastException: class Foo cannot be cast to
> class Bar
>
> print 'changed'
>
> }
>
> }
>
> print 'ready;'
>
> }
>
> }
>
>
>
> Foo foo = new Foo()
>
> foo.postConstruct()
>
> foo.getBar().setBaz('xxx')
>
>
>
>
>
>
>
> https://github.com/groovy/groovy-eclipse/issues/1412
> <https://urldefense.com/v3/__https:/github.com/groovy/groovy-eclipse/issues/1412__;!!GFN0sa3rsbfR8OLyAw!bglCVldficTJZuJhLcm5zqHpJi7Sb9VKB4ZClb6GQr_eF4zZ6gMW2Y8gmsHGuhjX5myl5xawpmxlv7D4gvsAW2Ol$>
>
RE: [EXT] [VOTE] Release Apache Groovy 4.0.12
Posted by "Milles, Eric (TR Technology) via dev" <de...@groovy.apache.org>.
-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 <de...@groovy.apache.org>
Sent: Thursday, May 4, 2023 12:29 PM
To: dev@groovy.apache.org
Subject: RE: [EXT] [VOTE] Release Apache Groovy 4.0.12
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 other
}
class Foo {
Bar bar
@groovy.beans.Bindable
String foo
@groovy.transform.CompileStatic
void postConstruct() {
bar = new Bar()
bar.with {
addPropertyChangeListener('baz') { event ->
other = 'value' // ClassCastException: class Foo cannot be cast to class Bar
print 'changed'
}
}
print 'ready;'
}
}
Foo foo = new Foo()
foo.postConstruct()
foo.getBar().setBaz('xxx')
https://github.com/groovy/groovy-eclipse/issues/1412<https://urldefense.com/v3/__https:/github.com/groovy/groovy-eclipse/issues/1412__;!!GFN0sa3rsbfR8OLyAw!bglCVldficTJZuJhLcm5zqHpJi7Sb9VKB4ZClb6GQr_eF4zZ6gMW2Y8gmsHGuhjX5myl5xawpmxlv7D4gvsAW2Ol$>