[
https://issues.apache.org/jira/browse/GROOVY-12437?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18152954#comment-18152954
]
Mattias Reichel commented on GROOVY-12437:
------------------------------------------
Thanks for the fix. JIRA lists 5.1.4 as a fix version, but the fix is not in
the 5.1.4 release:
* It is on {{GROOVY_5_0_X}} as c293cdacc9, the newest commit on that branch. It
is also on master as f8a6ba2520 and on {{GROOVY_6_0_X}} as c32470a7b9, which
6.0.1 contains.
* {{GROOVY_5_1_X}} has no commit for GROOVY-12437, and the {{GROOVY_5_1_4}} tag
does not contain c293cdacc9.
The reproducer agrees. I used its sources and steps (Base compiled first, then
Child against Base's class files) on OpenJDK 21.0.12:
||Version||Base and Child together||Child against Base's class files||
|5.1.3|pass|{{unable to resolve class E}}|
|5.1.4|pass|{{unable to resolve class E}}|
|6.0.0|pass|{{unable to resolve class E}}|
|6.0.1|pass|pass|
c293cdacc9 cherry-picks onto {{GROOVY_5_1_X}} (5abce2e94) without conflicts. I
haven't built Groovy or run {{Groovy12437}} there.
Could the fix go to {{GROOVY_5_1_X}} for 5.1.5? Grails 8 builds with 5.1.x,
which is how we noticed. 5.0.8 is the latest 5.0.x release, so no Groovy 5
release has the fix yet. If it won't go to 5.1.x, could 5.1.4 come off the fix
versions?
> Groovy 5 Incremental Compilation Issue
> --------------------------------------
>
> Key: GROOVY-12437
> URL: https://issues.apache.org/jira/browse/GROOVY-12437
> Project: Groovy
> Issue Type: Bug
> Affects Versions: 5.0.0
> Reporter: James Daugherty
> Assignee: Paul King
> Priority: Major
> Fix For: 7.0.0-alpha-1, 5.1.4, 6.0.1
>
>
> A statically compiled subclass fails to compile against a precompiled generic
> superclass when a ternary expression selects between two inherited generic
> map properties. Compiling the same sources together succeeds.
> This was discovered during incremental compilation in a Grails application,
> but {*}the reproducer uses only the standalone Groovy compiler{*}. Gradle,
> Grails, application dependencies, compiler configuration scripts, and build
> caches are not involved.
>
> Reproducer is here:
> [https://github.com/jdaugherty/groovy5-incrementa-compilation-issue]
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)