From 4387122a51c4c2268f8aa1907f313446a479bcc6 Mon Sep 17 00:00:00 2001 From: rtrimana Date: Fri, 21 Jun 2019 11:43:20 -0700 Subject: [PATCH] Returning genericDeclaration for TypeVariableImpl's getGenericDeclaration method. --- examples/Empty.groovy | 2 +- .../reflectiveObjects/TypeVariableImpl.java | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/examples/Empty.groovy b/examples/Empty.groovy index 55d02fe..1b7beeb 100644 --- a/examples/Empty.groovy +++ b/examples/Empty.groovy @@ -23,6 +23,6 @@ class Empty { //Empty emp = new Empty(); //int result = emp.installed(); //println result; - //println "Test" + println "Test" } } diff --git a/src/classes/sun/reflect/generics/reflectiveObjects/TypeVariableImpl.java b/src/classes/sun/reflect/generics/reflectiveObjects/TypeVariableImpl.java index 7abc7e3..56a544f 100644 --- a/src/classes/sun/reflect/generics/reflectiveObjects/TypeVariableImpl.java +++ b/src/classes/sun/reflect/generics/reflectiveObjects/TypeVariableImpl.java @@ -60,18 +60,18 @@ public class TypeVariableImpl } 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) { -- 2.34.1