Error when upgrading to 0.6

82 views
Skip to first unread message

Steve Appling

unread,
Mar 6, 2012, 8:56:08 AM3/6/12
to Spock Framework - User
I'm getting an error when upgrading to version 0.6. Running my test
results in :

java.lang.annotation.IncompleteAnnotationException:
org.spockframework.runtime.model.SpecMetadata missing element line
at
sun.reflect.annotation.AnnotationInvocationHandler.invoke(AnnotationInvocationHandler.java:
53)
at $Proxy3.line(Unknown Source)
at
org.spockframework.runtime.SpecInfoBuilder.buildSpec(SpecInfoBuilder.java:
80)
...

The only annotation in the test class is an @Shared - this seems to be
related to the problem. If I remove the annotation and change the
field to a static, the error goes away. Has the usage or syntax of
@Shared changed in some way?

Peter Niederwieser

unread,
Mar 6, 2012, 9:03:18 AM3/6/12
to spockfr...@googlegroups.com
Nothing has changed about how @Shared is used. Have you tried a full rebuild?

Cheers,
Peter

> --
> You received this message because you are subscribed to the Google Groups "Spock Framework - User" group.
> To post to this group, send email to spockfr...@googlegroups.com.
> To unsubscribe from this group, send email to spockframewor...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/spockframework?hl=en.
>

Steve Appling

unread,
Mar 6, 2012, 9:07:46 AM3/6/12
to Spock Framework - User
On Mar 6, 9:03 am, Peter Niederwieser <pnied...@gmail.com> wrote:
> Nothing has changed about how @Shared is used. Have you tried a full rebuild?
>
That was it. I was just trusting "gradle test" to do the right thing
after updating the library. Sorry for the false alarm.
Thanks for the quick response!
Reply all
Reply to author
Forward
0 new messages