Small question on ldc and ldc_w

Sai Zhang <[email protected]>
Newsgroups gmane.comp.java.objectweb.asm
Message-ID <[email protected]>
Hi all:

A small question on ldc and ldc_w instruction: it seems that asm does
not distinguish these two instructions, right? I mean if i want to insert
new LdcInsnNode(xxx).

For example, I found the code like:

 new LdcInsnNode("String content");

will sometimes produces ldc "string content", while some times produces
Ldc_w "string content".
and seems does related to the length of string?

Does any one have idea on this point? Will this "unpredictability" produce
some unexpected
side-effect? or how asm decide to Ldc or Ldc_w?

thanks

-Sai
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.