Handling of NULL at LocalVariablesSorter.visitFrame()

[email protected]
Newsgroups gmane.comp.java.objectweb.asm
Message-ID <[email protected]>
Hello,

in version 3.3 the method LocalVariablesSorter.visitFrame() was updated to
include the check of locals types. It checks for Integer, Float, Long, Double
and otherwise use the following:
typ = Type.getObjectType((String) t);

I have the problem with this statement. If local value is Opcodes.NULL then
we have ClassCastException (java.lang.Integer cannot be cast to
java.lang.String).
Probably the reason is that I use LocalVariablesSorter delegating to
AnalyzerAdapter, which pushes Opcodes.NULL on stack in case of ACONST_NULL
instruction.

It's not reproducible with ASM 3.2.

Could you please let me know if it's really an issue in ASM or just incorrect
using of ASM by me?
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.