title: Excluding Synthetic Classes in Emma within STS
body: <p>When trying to run Coverage as or run a maven build using emma:emma I get the following:</p>
  
  <blockquote>
    <p>java.lang.IllegalStateException: Could not access method: Can not set
    static final [Z field packageName.ClassName.$jacocoData to [Z</p>
  </blockquote>
  
  <p>So I searched around online and I found the following on the EclEmma website:</p>
  
  <blockquote>
    <p><strong>My code uses reflection. Why does it fail when I execute it with JaCoCo?</strong></p>
    
    <p>To collect execution data JaCoCo instruments the classes under test
    which adds two members to the classes: A private static field
    $jacocoData and a private static method $jacocoInit(). Both members
    are marked as synthetic.</p>
    
    <p>Please change your code to ignore synthetic members. This is a good
    practice anyways as also the Java compiler creates synthetic members
    in certain situation.</p>
  </blockquote>
  
  <p>But I cannot find any documentation on the web on how to actually ignore synthetic members with Emma. </p>
  
  <p>In STS I look under Preferences/Java/Code Coverage and I see an Excludes box to put exclusions (and I know I could also put the exclusion in my POM). </p>
  
  <p>I am just wondering what needs to go in there to exclude all synthetic classes. </p>
  
  <p>Thanks</p>