]> source.dussan.org Git - aspectj.git/commitdiff
added test for broken primitive case
authoracolyer <acolyer>
Fri, 8 Jul 2005 16:00:07 +0000 (16:00 +0000)
committeracolyer <acolyer>
Fri, 8 Jul 2005 16:00:07 +0000 (16:00 +0000)
bcel-builder/testsrc/org/aspectj/apache/bcel/classfile/tests/GenericSignatureParserTest.java

index 9e4da1b71ba800ec2be509f6277e034b07d04090..ae7ad5389a99db72373a6c91cb7d3511ee9a3693 100644 (file)
@@ -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[] {