title: Add a field to java.lang.Object
body: <p>I added a field to <code>Object</code> class, as in :</p>
  
  <pre><code>class Object {
     ...
  
     private Object _objInfo;
  }
  </code></pre>
  
  <p>I changed <code>java.lang.Object</code>'s source code and recompiled OpenJDK 6. I get the following exception when the VM boots:</p>
  
  <pre><code>Error occurred during initialization of VM
      java.lang.IllegalStateException
      at java.lang.Throwable.initCause(Throwable.java:337)
      at java.lang.ExceptionInInitializerError.&lt;init&gt;(ExceptionInInitializerError.java:79)
  </code></pre>
  
  <p>The same problem occurs when I define my own Object class and prepended it to bootclasspath, as in:</p>
  
  <pre><code>java -Xbootclasspath/p:&lt;path to my Object class&gt;
  </code></pre>
  
  <p>Thanks,
  Horatiu</p>