Graeme Rocher created GROOVY-8356: ------------------------------------- Summary: 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.5.0-beta-2, 2.4.12 Reporter: Graeme Rocher
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)