title: can spring roo parse variables in arguments of annotation @javax.validation.constraints.Size?
body: <p>i have a spring roo application with an entity <strong>Book</strong>. the entity has some properties like <strong>title</strong> where i use a variable <strong>ONE_KILO_BYTE</strong> as value:</p>
  
  <pre><code>public class Book {
  
   private static final int ONE_KILO_BYTE = 1024;
  
   @NotNull
   @Size(max = ONE_KILO_BYTE)
   private String title;
   ...
  }
  </code></pre>
  
  <p>the code compiles and works well, but in spring roo shell i get some errors and the corresponding aj file like Book_Roo_Jpa_ActiveRecord.aj can no more be updated by the roo shell. the error message in spring roo shell looks like this:</p>
  
  <pre><code>org.springframework.roo.model.EnumDetails cannot be cast to java.lang.Integer
  </code></pre>
  
  <p>when i replace all occurences of <strong>ONE_KILO_BYTE</strong> with <strong>1024</strong> spring roo is able to generate aj files again.</p>
  
  <p>roo version: 1.2.5.RELEASE</p>
  
  <p>my problem remembers me a bit of this issue:
  <a href="https://jira.spring.io/browse/ROO-3047" rel="nofollow">https://jira.spring.io/browse/ROO-3047</a></p>
  
  <p>is it possible to use constant values in @Size annotation arguments with spring roo?</p>