[
http://jira.codehaus.org/browse/MGROOVY-165?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=148500#action_148500
]
Josh Brown commented on MGROOVY-165:
------------------------------------
A workaround is to add the BigDecimal statement to Foo.java:
{{import java.math.BigDecimal}}
However, since Groovy natively supports BigDecimals, this shouldn't need to be
done.
> When using BigDecimals in Groovy, compilation fails
> ---------------------------------------------------
>
> Key: MGROOVY-165
> URL: http://jira.codehaus.org/browse/MGROOVY-165
> Project: GMaven
> Issue Type: Bug
> Components: stub generation
> Affects Versions: 1.0-rc-3
> Environment: Windows XP
> Maven 2.0.8
> Reporter: Josh Brown
> Assignee: Jason Dillon
>
> Compilation fails when using BigDecimals in a Groovy class with the following
> output:
> {{C:\...\Foo.java:[49,18] cannot find symbol}}
> {{symbol : class BigDecimal}}
> {{location: class org.foo.Foo}}
> When the stubs are generated, the stubbed Java files do not contain an import
> for java.math.BigDecimal. I assume this is why compilation fails.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email