Method[Hande|Type] name clash between java.lang.invoke and org.objectweb.asm

Rémi Forax <[email protected]>
Newsgroups gmane.comp.java.objectweb.asm
Message-ID <[email protected]>
I know that we have already discussed about that point
but I think it's important to change the name of MethodHandle|MethodType 
in ASM4 API.

Here is an example of code (not written by me but I've written the same 
kind of code)
sent to the DaVinci mailing list:

java.lang.invoke.MethodType bsmType = 
java.lang.invoke.MethodType./methodType/(
     ConstantCallSite.*class*, Lookup.*class*, String.*class*, 
java.lang.invoke.MethodType.*class*);
mv.visitInvokeDynamicInsn(...,
     new MethodHandle(..., bsmType.toMethodDescriptorString()));
...

The first line uses the java.lang.invoke API and the second line uses 
the ASM API.
java.lang.invoke.MethodType is used to generated the method descriptor of
the bootstrap method.

In my opinion, it will be far more readable to don't name the ASM classes
representing a constant method type and a constant method handle
with the same name as their runtime cousins.

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.