Description
When I try the following, Utility class throws ClassFormatException:
String sig = "<T:Ljava/lang/Object;>(Lcom/google/common/io/ByteProcessor<TT;>;)TT;" Utility.methodSignatureArgumentTypes(sig, false)
The above signature actually exists in com.google.common.io.ByteSource in Google Guava.
Utility.methodSignatureReturnType does not throw any exception but its return value does not look valid.
When I try this:
String sig = "<T:Ljava/lang/Object;>(Lcom/google/common/io/ByteProcessor<TT;>;)TT;" Utility.methodSignaturerReturnType(sig, false)
expected: java.lang.Object
actual: T
It seems that org.apache.bcel.generic.Type.java also has the same issue.
Dongsun.