Re: RE: Pushing Integer(), getting int, how to deal with?

Jeremy Cowgar <[email protected]>
Newsgroups gmane.comp.java.objectweb.asm
Message-ID <[email protected]>
On 5/7/2010 2:06 PM, Tim Eck wrote:
>
> You're going to need to make an Integer yourself.
>
> mv.visitFieldInsn(GETSTATIC, "java/lang/System", "err", 
> "Ljava/io/PrintStream;");
>
> mv.visitLdcInsn(new Integer(10));
>
> mv.visitMethodInsn(INVOKESTATIC, "java/lang/Integer", "valueOf", 
> "(I)Ljava/lang/Integer;");
>
> mv.visitMethodInsn(INVOKEVIRTUAL, "java/io/PrintStream", "println", 
> "(Ljava/lang/Object;)V");
>

Thank you. This is my first venture into the JVM and I am understanding 
more things now. It is working.

Jeremy
message-footer.txt (text/plain, 238 B)
-- 
You receive this message as a subscriber of the [email protected] mailing list.
To unsubscribe: mailto:[email protected]
For general help: mailto:[email protected]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.