From 803616d373f1c366e133f87342b88514cc5f74c3 Mon Sep 17 00:00:00 2001 From: acolyer Date: Wed, 24 Aug 2005 19:20:56 +0000 Subject: fix for pr107784, failure to parse an array of a primitive type when used as a type variable --- .../apache/bcel/classfile/tests/GenericSignatureParserTest.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'bcel-builder/testsrc/org') 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 12a9f1ff1..bac45e316 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 @@ -234,6 +234,12 @@ public class GenericSignatureParserTest extends TestCase { } } + public void testPr107784() { + parser.parseAsMethodSignature( + "(Lcom/cibc/responders/mapping/CommonDataBeanScenario;Ljava/lang/Object;)Lcom/cibc/responders/response/Formatter<[BLjava/lang/Object;>;"); + parser.parseAsClassSignature("Ljava/lang/Object;"); + } + private void assertEquals(String[] expected, String[] actual) { if (actual.length != expected.length) { int shorter = Math.min(expected.length,actual.length); -- cgit v1.2.3