You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Steven Dick (JIRA)" <ji...@apache.org> on 2017/12/19 13:21:00 UTC
[jira] [Created] (GROOVY-8420) 2.4.13
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)