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

Scott Vachalek <[email protected]>
Newsgroups gmane.comp.java.objectweb.asm
Message-ID <[email protected]>
Integer is not a valid type for a constant.  You'll need to convert it with
an Integer constructor or factory method.

On Fri, May 7, 2010 at 10:36 AM, Jeremy Cowgar <[email protected]> wrote:

>  I have this small section of code that is causing me problems:
>
>         mw.visitFieldInsn(GETSTATIC,
>                   "java/lang/System",
>                   "out",
>                   "Ljava/io/PrintStream;");
>         mw.visitLdcInsn(new Integer(10));
>         mw.visitMethodInsn(INVOKEVIRTUAL,
>                   "java/io/PrintStream",
>                   "println",
>                   "(Ljava/lang/Object;)V");
>
> How can I handle this situation? This is not the case of what my real code
> looks like, but I broke the problem down into these three lines trying to
> solve the problem.
>
> Jeremy
>
>
>
> --
> 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
>
>
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.