[ 
https://issues.apache.org/jira/browse/GROOVY-8911?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Daniel Sun reassigned GROOVY-8911:
----------------------------------

    Fix Version/s: 7.0.0-alpha-1
         Assignee: Daniel Sun

> 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
>            Assignee: Daniel Sun
>            Priority: Major
>             Fix For: 7.0.0-alpha-1
>
>
> 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-hibernate5/commit/6d20bc6ae0518d12065767ec28a2281b05d2da92]
>  
> Cloning the repo, reverting that commit and execute: 
> _./gradlew grails-datastore-gorm-neo4j:compileGroovy_
>  
> and compilation fails



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to