title: proguard causing EnumMap NPE on dynamically declared method
body: <p>I'm adding obfuscation via proguard/maven to a java application as we prepare it for distribution. During the process, it errors out with:</p>
  
  <p><code>Note: ...eventlib.EventManager accesses a declared method 'getHandlerList()' dynamically</code></p>
  
  <p>It then lists a dozen classes with that method with <code>Maybe this is...</code> and it recommends using <code>-keep</code> to avoid the problem.</p>
  
  <p>When I do add <code>-keep public class my.package.info.eventlib.HandlerList { *; }</code> to the build process, the error goes away, but I see the following notices:</p>
  
  <p><code>[proguard] Note: the configuration keeps the entry point 'events.TransactionEvent { TransactionEvent(my.package.info.inventory.Inventory,my.package.info.inventory.Inventory$TransactionType,my.package.info.inventory.ItemDefinition,short); }', but not the descriptor class 'my.package.info.inventory.Inventory'</code></p>
  
  <p>When I run the application, it errors out with an NPE (which it doesn't do when run without obfuscation):</p>
  
  <pre><code>Caused by: java.lang.NullPointerException
  at java.util.EnumMap.&lt;init&gt;(EnumMap.java:113)
  at my.package.info.eventlib.HandlerList.&lt;init&gt;(Unknown Source)
  at my.package.info.events.CollisionEvent.&lt;clinit&gt;(Unknown Source)
  </code></pre>
  
  <p>It's all tied to the events. How can I resolve this without telling proguard to keep everything tied to them?</p>
  
  <p>Here's a full example of the original error: <a href="http://pste.me/m9BsY/" rel="nofollow">http://pste.me/m9BsY/</a></p>
  
  <p>The event system is based on <a href="https://github.com/lahwran/fastevents" rel="nofollow">lahwran's fastevents</a></p>