You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Martin Skurla (JIRA)" <ji...@apache.org> on 2018/05/07 13:20:00 UTC
[jira] [Created] (GROOVY-8572) Groovy 2.4.12 Static compiler fails
on nonsense type inference error
Martin Skurla created GROOVY-8572:
-------------------------------------
Summary: Groovy 2.4.12 Static compiler fails on nonsense type inference error
Key: GROOVY-8572
URL: https://issues.apache.org/jira/browse/GROOVY-8572
Project: Groovy
Issue Type: Bug
Components: Static Type Checker
Affects Versions: 2.4.12
Reporter: Martin Skurla
I am using Gradle which internally currently uses Groovy 2.4.12.
I am getting the following error:
{code:java}
martin@martin-desktop:~/devel/apollo/buildteam/gradle_plugins(master)$ ./gradlew clean test
> Task :compileGroovy
startup failed:
/home/martin/devel/apollo/buildteam/gradle_plugins/src/main/groovy/apollosoft/build/support/gradle/assets/ApolloAssetsDSLExtension.groovy: 54: [Static type checking] - Cannot use diamond <> with anonymous inner classes
@ line 54, column 28.
closure.delegate = new Object() {
^
1 error
{code}
It looks like it is wrong, I am not specifying any diamond operator anywhere.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)