2 Replies Latest reply on Sep 6, 2005 4:01 PM by gpothier

    Can we avoid "cannot edit NEW followed by no DUP"?

    gpothier

      Hi,
      If I try to replace an expression like "new MyClass()" (without assignment), I get that error:
      javassist.CannotCompileException: sorry, cannot edit NEW followed by no DUP

      If I add an assignment like "MyClass dummy = new MyClass()", then there is no problem.

      Is there a fundamental issue in dealing with that sort of expression, or is it possible to fix it?

      Regards,
      Guillaume Pothier