title: Get declared fields of java.lang.reflect.Fields in jdk12
body: <p>In java8 it was possible to access fields of class java.lang.reflect.Fields using e.g.</p>
  
  <pre><code>Field.class.getDeclaredFields();
  </code></pre>
  
  <p>In java12 (starting with java9 ?) this returns only a empty array. This doesn't change even with</p>
  
  <pre><code>--add-opens java.base/java.lang.reflect=ALL-UNNAMED
  </code></pre>
  
  <p>set.</p>
  
  <p>Any ideas how to achieve this? 
  (Appart from the fact that this might be a bad idea, i want to be able to change a "static final" field in my code during junit testing via reflection. This has been possible with java8 by changing the "modifiers"</p>
  
  <pre><code>Field modifiersField = Field.class.getDeclaredField("modifiers");
  modifiersField.setAccessible(true);
  modifiersField.setInt(myfield, myfield.getModifiers() &amp; ~Modifier.FINAL);
  </code></pre>
  
  <p>)</p>