First push into ASM_4_FUTURE

Rémi Forax <[email protected]>
Newsgroups gmane.comp.java.objectweb.asm
Message-ID <[email protected]>
As a preparation work before introducing JSR292 new constant pool constants,
i have separated visitLdcInsn in two differents calls:
  - visitCstPrimInsn for LDC with primitive values or strings
  - visitCstClassInsn for LDC with constant classes

First, I haven't changed the AnnotationVisitor so
visiting a constant class annotation value is still done with
visit("foo", Type.getType(className))
Should I change this call to introduce a
visitClass("foo", className)
instead ?

Also, I wonder if visitCstClassInsn is necessary,
visitTypeInsn could be extended to take a LDC as first parameter,
reducing the number of method in MethodVisitor.

Next step, introducing support for LDC with MethodType and MethodHandle.

cheers,
Rémi
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.