First commit to JPF repo on PLRG server.
[jpf-core.git] / examples / Reflection.java
index 43726651bee892061bdd44e85175b59a69b62e71..88f41d555257c6e0fbae9fe898f9225fb289d3b8 100644 (file)
@@ -9,6 +9,9 @@ import java.util.Arrays;
 
 public class Reflection {
 
+       class GenericShort<TUVW,ABCD> {
+       }
+
        class Generic<TUVW,ABCD,KLM,NOP> {
        
        }
@@ -23,12 +26,12 @@ public class Reflection {
                  return test;
           }
           
-          /*
-          public String getSampleField() {
+          
+          /*public String getSampleField() {
                  return sampleField;
-          }
+          }*/
           
-          public void setSampleField(String sampleField) {
+          /*public void setSampleField(String sampleField) {
              this.sampleField = sampleField;
           }
           
@@ -51,17 +54,18 @@ public class Reflection {
          System.out.println(parameterType.getName());   
  
       }
-      System.out.println();
+      System.out.println();*/
       TypeVariable[] typeParameters = Generic.class.getTypeParameters();
       //TypeVariable[] typeParameters = SampleClass.class.getTypeParameters();
       for(TypeVariable typeVar: typeParameters){
          System.out.println(typeVar);   
  
       }
-      System.out.println();*/
-      /*
+      System.out.println();
+      
       Type returnType = methods[0].getGenericReturnType();
-      System.out.println(returnType);*/
+      System.out.println(returnType);
+         
    }
 }