groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul King (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (GROOVY-8911) 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>]
Date Thu, 20 Dec 2018 02:33:00 GMT

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

Paul King updated GROOVY-8911:
------------------------------
    Description: 
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

  was:
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


> 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
>            Priority: Major
>
> 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
(v7.6.3#76005)

Mime
View raw message