[jira] [Commented] (GROOVY-8420) @TypeChecked in 2.4.13 produces incorrect compiler error

2018-01-17 Thread Steven Dick (JIRA)

[ 
https://issues.apache.org/jira/browse/GROOVY-8420?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16328660#comment-16328660
 ] 

Steven Dick commented on GROOVY-8420:
-

{{We're using: }}
{code:java}
javax.annotation.Nullable{code}
{{We never got around to testing Groovy 2.4.13 on our CI server due to finding 
the error in Intellij after the upgrade.}}

I can confirm that running our Gradle build with Groovy 2.4.13 succeeds, so 
this can be closed as it must be a bug in Intellij.

> @TypeChecked in 2.4.13 produces incorrect compiler error
> 
>
> Key: GROOVY-8420
> URL: https://issues.apache.org/jira/browse/GROOVY-8420
> Project: Groovy
>  Issue Type: Bug
>  Components: Compiler
>Affects Versions: 2.4.13
> Environment: Windows 10, Java 8 Update 152, IntelliJ IDEA Build 
> #IC-173.4127.2
>Reporter: Steven Dick
>Priority: Major
>
> After upgrading to Groovy 2.4.13, the following code no longer compiles in 
> Intellij:
> {code:java}
> @TypeChecked
> public class EnhancedDerivedNonUnitisedPrice {
> ...
> public @Nullable BigDecimal getReturnPerc() {
> return null;
> }
> ...
> {code}
> The error is, "Cannot return 'null' from method returning BigDecimal".
> Either removing the {{@TypeChecked}} or adding a cast to {{BigDecimal}} 
> resolves the problem.



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


[jira] [Updated] (GROOVY-8420) @TypeChecked in 2.4.13 produces incorrect compiler error

2017-12-20 Thread Steven Dick (JIRA)

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

Steven Dick updated GROOVY-8420:

Summary: @TypeChecked in 2.4.13 produces incorrect compiler error  (was: 
2.4.13)

> @TypeChecked in 2.4.13 produces incorrect compiler error
> 
>
> Key: GROOVY-8420
> URL: https://issues.apache.org/jira/browse/GROOVY-8420
> Project: Groovy
>  Issue Type: Bug
>  Components: Compiler
>Affects Versions: 2.4.13
> Environment: Windows 10, Java 8 Update 152, IntelliJ IDEA Build 
> #IC-173.4127.2
>Reporter: Steven Dick
>
> After upgrading to Groovy 2.4.13, the following code no longer compiles in 
> Intellij:
> {code:java}
> @TypeChecked
> public class EnhancedDerivedNonUnitisedPrice {
> ...
> public @Nullable BigDecimal getReturnPerc() {
> return null;
> }
> ...
> {code}
> The error is, "Cannot return 'null' from method returning BigDecimal".
> Either removing the {{@TypeChecked}} or adding a cast to {{BigDecimal}} 
> resolves the problem.



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


[jira] [Created] (GROOVY-8420) 2.4.13

2017-12-19 Thread Steven Dick (JIRA)
Steven Dick created GROOVY-8420:
---

 Summary: 2.4.13
 Key: GROOVY-8420
 URL: https://issues.apache.org/jira/browse/GROOVY-8420
 Project: Groovy
  Issue Type: Bug
  Components: Compiler
Affects Versions: 2.4.13
 Environment: Windows 10, Java 8 Update 152, IntelliJ IDEA Build 
#IC-173.4127.2
Reporter: Steven Dick


After upgrading to Groovy 2.4.13, the following code no longer compiles in 
Intellij:

{code:java}
@TypeChecked
public class EnhancedDerivedNonUnitisedPrice {
...
public @Nullable BigDecimal getReturnPerc() {
return null;
}
...
{code}

The error is, "Cannot return 'null' from method returning BigDecimal".

Either removing the {{@TypeChecked}} or adding a cast to {{BigDecimal}} 
resolves the problem.




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