title: Getting error in eclipse for spock's @Shared annotation
body: <p>As a try, I created a simple groovy class in eclipse and wrote a simple spock test method.
  I created one object with <code>@Shared</code> annotation and eclipse is complaining like:</p>
  
  <pre><code>Multiple markers at this line
  - Groovy:unable to resolve class Shared , unable to find class 
   for annotation
  - Groovy:class Shared is not an annotation in @Shared
  </code></pre>
  
  <p>I googled a little but did not find the solution. Does anyone know why this error is occurring? Below is the sample code:</p>
  
  <pre><code>class SimpleSpockTestExampleSpec extends Specification {
  
     @Shared
     MyObject obj;
  
     def "length of Spock's and his friends' names"()
     {
        expect:"Replaces when-then block"
        name.size() == length
  
        where:
        name &lt;&lt; ["zzzzz","xxx","yyy"]
        length &lt;&lt; [5,6,7]
     }    
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/BPs8H.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BPs8H.png" alt="enter image description here"></a></p>
  
  <p>Pease ignore the line numbers in the image.</p>