Hi Mario,

as far as I remember groovy-macro is global ast-transformation. I guess here is some side-effect/bug which causes the test failures. Sadly I lack the necessary knowledge to investigate further.

-Pascal

Am 22.05.2016 um 14:33 schrieb Mario Garcia:
Hi:

I'm trying to write some examples about the new features coming in the new 'groovy-macro' but I'm experiencing some issues.

In order to use 'groovy-macro' in the specs I've added the following line in the root build.gradle:

   testCompile project(':groovy-macro')

But when running tests using "./gradlew test" two tests are failing:

  * org.codehaus.groovy.classgen.asm.sc.bugs.Groovy6757Bug#testExplicitTypeHint
  * 
org.codehaus.groovy.classgen.asm.sc.bugs.Groovy7316Bug#testTypeCheckingBypassUsingExplicitTypeHint

I've removed my examples to isolate the issue. And it turns out it just fails adding the testCompile dependency. Once I remove the dependency all tests succeed.

Any ideas ? Should I've been doing the dependency management in some other way? Maybe a bug ?

Mario



Reply via email to