1 Reply Latest reply on Jul 8, 2004 1:22 AM by brett_s_r

    CtNewMethod on static fields, bug submitted

    brett_s_r

      See http://sourceforge.net/tracker/?func=detail&aid=987038&group_id=22866&atid=376685. A failing TestCase is provided.

      I notice that the code deliberately treats statics differently:

      if ((finfo.getAccessFlags() & AccessFlag.STATIC) == 0) {
       code.addAload(0);
       code.addLoad(1, field.getType());
       code.addPutfield(Bytecode.THIS, fieldName, fieldType);
       }
       else {
       code.addLoad(0, field.getType());
       code.addPutstatic(Bytecode.THIS, fieldName, fieldType);
       }


      Any ideas what the problem could be?

      Thanks

      Brett Randall


        • 1. Re: ChangeNotes: 3.2.4
          brett_s_r

          Message and TransactionID Object Pooling has been disabled.
          This reduces some of the complexity of the implementation.
          User space pooling is only relevent for objects that take a long
          time to construct (these objects do not).