On 08.06.2011 07:44, Zaree Faryal wrote: > I know how to push Primitive Types on Stack using > InstructinoList.append(new PUSH(ConstantPoolGen,343)); > > Now i want to push Custom Type Object(Obj of some user defined class i.e. > Engine > Class obj) on Stack in BCEL.
Simply create the object; it will lie on the stack after creation until you do something else with it. Or if you don't want to create it but load it from some "static final" constant, then use GETSTATIC. Martin
signature.asc
Description: OpenPGP digital signature