groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patric Bechtel (JIRA)" <j...@apache.org>
Subject [jira] [Created] (GROOVY-8380) Regression in 2.4.13 (snapshot) 62615249161b233b1827d5950671d3a83007cd9f
Date Tue, 14 Nov 2017 14:32:00 GMT
Patric Bechtel created GROOVY-8380:
--------------------------------------

             Summary: Regression in 2.4.13 (snapshot) 62615249161b233b1827d5950671d3a83007cd9f
                 Key: GROOVY-8380
                 URL: https://issues.apache.org/jira/browse/GROOVY-8380
             Project: Groovy
          Issue Type: Bug
          Components: Static compilation
    Affects Versions: 2.4.13
         Environment: any
            Reporter: Patric Bechtel
            Priority: Critical


This used to work up to 2.4.12:

@groovy.transform.CompileStatic
class bla {
   static void main(String[] args) {
      println new Long( 5 / 3 )
   }
}

starting with 2.4.13, it gives this error message:

bla.groovy: 4: [Static type checking] - Cannot find matching method java.lang.Long#<init>(java.math.BigDecimal).
Please check if the declared type is right and if the method exists.
 @ line 4, column 15.
         println new Long( 5 / 3 )





--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message