title: Using static variables in Spring annotations
body: <p>I'm using spring's PreAuthorize annotation as follows:</p>
  
  <pre><code>@PreAuthorize("hasRole('role')");
  </code></pre>
  
  <p>However, I already have 'role' defined as a static String on another class. If I try to use this value:</p>
  
  <pre><code>@PreAuthorize("hasRole(OtherClass.ROLE)");
  </code></pre>
  
  <p>I get an error:</p>
  
  <pre><code>org.springframework.expression.spel.SpelEvaluationException: EL1008E:(pos 14): Field or property 'OtherClass' cannot be found on object of type 'org.springframework.security.access.expression.method.MethodSecurityExpressionRoot'
  </code></pre>
  
  <p>Is there a way to access static variables like this with a PreAuthorize annotation?</p>