Commit 5cbf7de1 authored by Eric Bruneton's avatar Eric Bruneton
Browse files

Merge branch '317621-non-regression-test' into 'master'

Add a non regression test for issue #317621.

See merge request asm/asm!98
parents 9df5f23d 7f2c5bb6
......@@ -166,6 +166,12 @@ public class TypeTest implements Opcodes {
assertEquals(returnType, methodType.getReturnType());
public void testGetReturnTypeFromDescriptor() {
assertEquals(Type.INT_TYPE, Type.getReturnType("()I"));
assertEquals(Type.INT_TYPE, Type.getReturnType("(Lpkg/classMethod();)I"));
public void testGetTypeFromClass() {
assertEquals(Type.VOID_TYPE, Type.getType(void.class));
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment