Re: How to push a Custom Type Object on Stack

Martin von Gagern <[email protected]> Wed, 08 Jun 2011 08:24:24 +0200
Newsgroups gmane.comp.jakarta.bcel.user
Message-ID <[email protected]>
--------------enigBC76EFDC0424F1B983E295A8
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 08.06.2011 07:44, Zaree Faryal wrote:
> I know how to push Primitive Types on Stack using=20
> InstructinoList.append(new PUSH(ConstantPoolGen,343));=20
>=20
> Now i want to push Custom Type Object(Obj of some user defined class i.=
e. Engine=20
> 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


--------------enigBC76EFDC0424F1B983E295A8
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk3vFZgACgkQRhp6o4m9dFsqGwCfYgIH0c5O5x59NdR+FeZTM7Fh
FtwAnRJULv0UEMKQbpdDwlUILONCb4YU
=N4Zt
-----END PGP SIGNATURE-----

--------------enigBC76EFDC0424F1B983E295A8--