title: AspectJ - Is is possible to extend an enum's value?
body: <p>Say I have an enum</p>
  
  <pre><code>public enum E {A,B,C}
  </code></pre>
  
  <p>Is it possible to add another value, say <code>D</code>, by AspectJ?</p>
  
  <p>After googling around, it seems that there used to be a way to hack the private static field <code>$VALUES</code>, then call the constructor(String, int) by reflection, but seems not working with 1.7 anymore.</p>
  
  <p>Here are several links:
  <a href="http://www.javaspecialists.eu/archive/Issue161.html" rel="nofollow">http://www.javaspecialists.eu/archive/Issue161.html</a> (provided by @WimDeblauwe )</p>
  
  <p>and this: <a href="http://www.jroller.com/VelkaVrana/entry/modify_enum_with_reflection" rel="nofollow">http://www.jroller.com/VelkaVrana/entry/modify_enum_with_reflection</a></p>