More tests on the Class<U> case.
authorrtrimana <rtrimana@uci.edu>
Thu, 20 Jun 2019 20:11:28 +0000 (13:11 -0700)
committerrtrimana <rtrimana@uci.edu>
Thu, 20 Jun 2019 20:11:28 +0000 (13:11 -0700)
examples/Reflection.java
src/main/gov/nasa/jpf/vm/Types.java

index c49ce47fa6d9c6a96667b53d833556517cd744bd..f2bff8ab62ba9ce019cf132914e3b556448aad14 100644 (file)
@@ -16,10 +16,10 @@ public class Reflection {
        
        }
 
-       class SampleClass<U> {
+       class SampleClass<VWXZ> {
           private String sampleField;
 
-          public Generic<Integer,String,Double,Short> setSampleField(Class<U> clazz, List<String> listString, Map<Integer,String> mapString,
+          public Generic<Integer,String,Double,Short> setSampleField(Class<VWXZ> clazz, List<String> listString, Map<Integer,String> mapString,
                                Generic<Integer,String,Double,Short> test,
                                String sampleField, int one, short two, double three, Object obj) {
                  this.sampleField = sampleField; 
index 2e98b2545f7da0ef73e55125acffe9ed51e3f39c..16ee295718f9e9195f70ab3c45dc1c2f9be5c5c6 100644 (file)
@@ -919,7 +919,8 @@ public class Types {
       return signature.substring(1, len1).replace('/', '.').
               replaceAll(";L", ", ").
               replace("<L","<").
-              replace(";>", ">");
+              replace(";>", ">").
+              replaceAll("<T", "<");
     }