diff options
Diffstat (limited to 'bcel-builder')
-rw-r--r-- | bcel-builder/testsrc/org/aspectj/apache/bcel/classfile/tests/GenericSignatureParserTest.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bcel-builder/testsrc/org/aspectj/apache/bcel/classfile/tests/GenericSignatureParserTest.java b/bcel-builder/testsrc/org/aspectj/apache/bcel/classfile/tests/GenericSignatureParserTest.java index 9e4da1b71..ae7ad5389 100644 --- a/bcel-builder/testsrc/org/aspectj/apache/bcel/classfile/tests/GenericSignatureParserTest.java +++ b/bcel-builder/testsrc/org/aspectj/apache/bcel/classfile/tests/GenericSignatureParserTest.java @@ -186,6 +186,13 @@ public class GenericSignatureParserTest extends TestCase { assertEquals("Ljava/lang/RuntimeException;",mSig.throwsSignatures[1].toString()); } + public void testMethodSignaturePrimitiveParams() { + Signature.MethodTypeSignature mSig = parser.parseAsMethodSignature("(ILjava/lang/Object;)V"); + assertEquals("2 parameters",2,mSig.parameters.length); + assertEquals("I",mSig.parameters[0].toString()); + assertEquals("Ljava/lang/Object;",mSig.parameters[1].toString()); + } + public void testMethodSignatureParsingInJDK() throws Exception{ SyntheticRepository repository = SyntheticRepository.getInstance(); String[] testClasses = new String[] { |