You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Graeme Rocher (JIRA)" <ji...@apache.org> on 2017/10/18 16:04:00 UTC
[jira] [Closed] (GROOVY-8356) Use javax.validation 2.0 API results
in GroovyBugError
[ https://issues.apache.org/jira/browse/GROOVY-8356?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Graeme Rocher closed GROOVY-8356.
---------------------------------
Resolution: Fixed
Fix Version/s: 2.5.0-beta-2
Actually this is fixed in beta 2, sorry for the hassle
> Use javax.validation 2.0 API results in GroovyBugError
> ------------------------------------------------------
>
> Key: GROOVY-8356
> URL: https://issues.apache.org/jira/browse/GROOVY-8356
> Project: Groovy
> Issue Type: Bug
> Affects Versions: 2.4.12, 2.5.0-beta-2
> Reporter: Graeme Rocher
> Fix For: 2.5.0-beta-2
>
>
> If you use the javax.validation 2.0 API using certain annotations results in:
> {code}
> BUG! exception in phase 'class generation' in source unit '.../validation/ValidatedSpec.groovy' unsupported Target TYPE_USE
> {code}
> Example code:
> {code}
> class Foo {
> String testMe(@Pattern(regexp = "\\d+") String number) {
> return number
> }
> }
> {code}
> Seems https://github.com/apache/groovy/blob/GROOVY_2_5_X/src/main/org/codehaus/groovy/vmplugin/v5/Java5.java#L327 needs updating for Java 8 `TYPE_USE`
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)