Returning genericDeclaration for TypeVariableImpl's getGenericDeclaration method.
authorrtrimana <rtrimana@uci.edu>
Fri, 21 Jun 2019 18:43:20 +0000 (11:43 -0700)
committerrtrimana <rtrimana@uci.edu>
Fri, 21 Jun 2019 18:43:20 +0000 (11:43 -0700)
examples/Empty.groovy
src/classes/sun/reflect/generics/reflectiveObjects/TypeVariableImpl.java

index 55d02fe9b898add76577d3faad0ffafe281ceb71..1b7beeb64134a756dd93fe2b24c6690167c1002e 100644 (file)
@@ -23,6 +23,6 @@ class Empty {
                //Empty emp = new Empty();
                //int result = emp.installed();
                //println result;
-               //println "Test"
+               println "Test"
        }       
 }
index 7abc7e3654ba499f48a3a436d69396ee809ea6a8..56a544f2cda8295343716e798cd182ce2c2df90d 100644 (file)
@@ -60,18 +60,18 @@ public class TypeVariableImpl<D extends GenericDeclaration>
     }
 
     public native Type[] getBounds();
-    /*public Type[] getBounds() {
-
-        throw new UnsupportedOperationException();
-    }*/
 
     public D getGenericDeclaration(){
-        throw new UnsupportedOperationException();
+        return genericDeclaration;
     }
 
-    public String getName()   { return name; }
+    public String getName()   {
+        return name;
+    }
 
-    public String toString() {return getName();}
+    public String toString() {
+        return getName();
+    }
 
     @Override
     public boolean equals(Object o) {