aboutsummaryrefslogtreecommitdiffstats
path: root/bcel-builder
diff options
context:
space:
mode:
authoracolyer <acolyer>2005-07-08 16:00:07 +0000
committeracolyer <acolyer>2005-07-08 16:00:07 +0000
commit0faf5e174adb97768f48e99c0857400d64c053db (patch)
tree6e59ccd8ce40568f2171eb70e214c439e779bbca /bcel-builder
parentea6af95245d692048e0cc3aa10d6bdbdd931121c (diff)
downloadaspectj-0faf5e174adb97768f48e99c0857400d64c053db.tar.gz
aspectj-0faf5e174adb97768f48e99c0857400d64c053db.zip
added test for broken primitive case
Diffstat (limited to 'bcel-builder')
-rw-r--r--bcel-builder/testsrc/org/aspectj/apache/bcel/classfile/tests/GenericSignatureParserTest.java7
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[] {