@@ -0,0 +1,2245 @@
+package org.apache.commons.bcel6;%0A%0Aimport junit.framework.TestCase;%0Aimport org.apache.commons.bcel6.*;%0Aimport org.apache.commons.bcel6.classfile.Signature;%0Aimport org.apache.commons.bcel6.classfile.Utility;%0Aimport org.apache.commons.bcel6.generic.Type;%0A%0Apublic class PLSE2TestCase extends AbstractTestCase %7B%0A%0A    public void testSignatureToStringWithGenerics() throws Exception %7B%0A%0A    // tests for BCEL-197%0A        %0A        String expectedValue = %22java.util.Map%3CX, java.util.List%3CY%3E%3E%22;%0A        String actualValue = Utility.signatureToString(%22Ljava/util/Map%3CTX;Ljava/util/List%3CTY;%3E;%3E;%22);%0A        assertEquals(%22generic signature%22, expectedValue, actualValue);%0A        //System.out.printf(%22U: %25s%25nS: %25s%25n%22, actualValue, Signature.translate(%22Ljava/util/Map%3CTX;Ljava/util/List%3CTY;%3E;%3E;%22));%0A%0A        expectedValue = %22java.util.Set%3C? extends java.nio.file.OpenOption%3E%22;%0A        actualValue = Utility.signatureToString(%22Ljava/util/Set%3C+Ljava/nio/file/OpenOption;%3E;%22);%0A        assertEquals(%22generic signature%22, expectedValue, actualValue);%0A        //System.out.printf(%22U: %25s%25nS: %25s%25n%22, actualValue, Signature.translate(%22Ljava/util/Set%3C+Ljava/nio/file/OpenOption;%3E;%22));%0A%0A        expectedValue = %22java.nio.file.attribute.FileAttribute%3C?%3E...%5B%5D%22;%0A        actualValue = Utility.signatureToString(%22%5BLjava/nio/file/attribute/FileAttribute%3C*%3E;%22);%0A        assertEquals(%22generic signature%22, expectedValue, actualValue);%0A        //System.out.printf(%22U: %25s%25nS: %25s%25n%22, actualValue, Signature.translate(%22%5BLjava/nio/file/attribute/FileAttribute%3C*%3E;%22));%0A        //System.out.printf(%22U: %25s%25nS: %25s%25n%22, actualValue, Signature.translate(%22Ljava/nio/file/attribute/FileAttribute%3C*%3E;%22));%0A%0A    // test for BCEL-243%0A        %0A        // expectedValue = %22Ljava/util/Map%3CTX;Ljava/util/List%3CTY;%3E;%3E;%22;%0A        // The line commented out above is the correct expected value; however,%0A        // the constructor for ObjectType is yet another place where BCEL does%0A        // not understand generics so we need to substitute the modified value below.%0A        expectedValue = %22Ljava/util/Map%3CX, java/util/List%3CY%3E%3E;%22;%0A        actualValue = (Type.getType(%22Ljava/util/Map%3CTX;Ljava/util/List%3CTY;%3E;%3E;%22)).getSignature();%0A        assertEquals(%22Type.getType%22, expectedValue, actualValue);%0A    %7D%0A%0A%7D%0A

add new test case for BCEL-243