title: Netbeans problems with reflection
body: <p>Why Netbeans takes so much time in <strong>java.lang.Class.getDeclaredField(String)</strong>?</p>
  
  <p>I have isolated my problem and I have two projects:</p>
  
  <p>I created a <strong>Netbeans Platform program</strong> with one module that has one window and one button in it. So when I click it, program runs the function that I need.</p>
  
  <p>I created a <strong>form</strong> that will call that function. </p>
  
  <p>So now I have two programs that are the same and run from an AWT thread. The key difference is that one runs under Netbeans Platform structure and the other one is alone.
  Profiling the two programs I found that the big problem is when it calls "java.lang.Class.getDeclaredField(String)" <strong>Netbeans program takes 30,784 ms and Swing program takes 2,055 ms</strong>
  It seems to me that Netbeans has some sort of security that checks when somebody is trying to access a class through reflection.
  Does anybody knows what is it? and how to turn it off?? </p>
  
  <p>Thanks
  HS</p>