title: What did I miss in my code to cause Attribute value must be constant
body: <p>I've been at this for hours and from what I'm seeing it should be possible but I keep getting the error <strong><em>"Attribute value must be constant"</em></strong></p>
  
  <p>I've been looking at many posts here but not seeing what my issue is.</p>
  
  <p>In my test class file</p>
  
  <pre><code>// The annotation
  @Pattern(regexp = MetaFilters.FuzzyDate.getRegExp())
  </code></pre>
  
  <p>.
  In the enum file</p>
  
  <pre><code>public enum MetaFilters {
      FuzzyDate;
      private String regExp;
  
      static {
          FuzzyDate.regExp = "...a pattern...";
      }
  
      public String getRegExp() {
          return regExp;
      }
  }
  </code></pre>
  
  <p>I've tried writing the enum more ways than I can recall at this point. The whole purpose of this is to have many regular expression options as the pattern may have only YYYY-MM-DD or may include a timestamp or could be a different format for the date itself. Please provide some guidance.</p>
  
  <p>So what am I missing here in order to get this to work?</p>