Sergio del Amo created GROOVY-8911:
--------------------------------------

             Summary: Cannot call methodName(java.lang.String, java.lang.Class 
<T extends java.lang.Object>) with arguments [java.lang.String, java.lang.Class 
<java.lang.Long>]
                 Key: GROOVY-8911
                 URL: https://issues.apache.org/jira/browse/GROOVY-8911
             Project: Groovy
          Issue Type: Bug
    Affects Versions: 2.5.4
         Environment: Groovy 2.5.4
Compiling under Gradle 5.0 
java version "1.8.0_191"
OS: Mac OS Mojave
            Reporter: Sergio del Amo


This code was failing to compile:

{{if(isVersioned() && hasProperty(GormProperties.VERSION, Long)) {}}

 

But this is compiling: 

 

{{Class clazz = Long}}

{{if(isVersioned() && hasProperty(GormProperties.VERSION, clazz)) {}}

 

Method signature is:

{{public boolean hasProperty(String name, Class type) {}}

 

{{ GormProperties.VERSION is String defined in an interface in a .java file. }}

 

 

*Steps to reproduce:.*

You can find a link to the commit here:

[https://github.com/grails/gorm-neo4j/commit/70a6321b902377303b762cc2cdb9e3f2c9a4b794]

 

Cloning the repo, reverting that commit and execute: 

_./gradlew grails-datastore-gorm-neo4j:compileGroovy_

 

and compilation fails



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to