< prev index next >

src/java.base/share/classes/java/lang/reflect/Executable.java

Print this page
*** 776,6 ***
--- 776,14 ---
                  this,
                  getDeclaringClass(),
                  getGenericExceptionTypes(),
                  TypeAnnotation.TypeAnnotationTarget.THROWS);
      }
+ 
+     String getDeclaringClassTypeName() {
+         Class<?> c = getDeclaringClass();
+         if (c.isPrimitiveClass()) {
+             c = c.asValueType();
+         }
+         return c.getTypeName();
+     }
  }
< prev index next >