2 Replies Latest reply on Jul 1, 2005 2:35 AM by Milen Dyankov

    circular references

    Milen Dyankov Newbie

      May be I didn't read the docs carefuly enugh but I can not figure out how to create 2 (or more) classes referencing each other.

      Can someone provide an example of how to genearate these two classes for example:

      public class A {
       private B b;
       //get instance of B
       public B getB () {
       return b;
      public class B {
       private A a;
       //get instance of A
       public A getA () {

      All my attempts ended with "ClassNotFound" exception thrown by javassist at compile time