title: Bytebuddy circular dependency Java
body: <pre><code>Class A {
      private B bObj;
  }
  
  Class B {
      private A aObj;
  }
  </code></pre>
  
  <p>I am trying to generate above classes using <code>bytebuddy</code> using <code>InstrumentedType.Default</code> but getting Invisible field exception. Could someone please explain in detail how to solve.</p>
  
  <p>Below is a reference
  <a href="https://stackoverflow.com/questions/44870944/byte-buddy-generate-classes-with-cyclic-types/44884603#44884603">Byte-buddy: generate classes with cyclic types</a></p>