[asm] Method.getMethod() and default package
I think ASM has a problem with the default package. We are using
Method.getMethod() as follows:
Method method = Method.getMethod("Foo doSomething(java.lang.Object)");
Because of the code in org.objectweb.asm.commons.Method.map() method this
gets
mapped to the signature like this:
(Ljava/lang/Object;)Ljava/lang/Foo;
You can see the class Foo (which resides in the default package) gets assumed
as being located in the java.lang package. There should be a way to be able
to use Method.getMethod (as its easier to use then the constructor of Method)
and not assume classes without package name to be located in java.lang.
This is important for me as we use ASM in development tools for mobile
developement where the default package is used very often.