[
https://issues.apache.org/jira/browse/GROOVY-8911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18149151#comment-18149151
]
Daniel Sun commented on GROOVY-8911:
------------------------------------
Fixed on master; added a regression test in
e202b920715f1b766fae297f0d14930836105d4d
(https://github.com/apache/groovy/commit/e202b920715f1b766fae297f0d14930836105d4d).
> 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)