< prev index next >

src/java.base/share/classes/sun/reflect/annotation/AnnotationInvocationHandler.java

Print this page

        

@@ -159,10 +159,13 @@
 
     /**
      * Translates a member value (in "dynamic proxy return form") into a string
      */
     private static String memberValueToString(Object value) {
+        if (value instanceof ExceptionProxy) {
+            return ((ExceptionProxy)value).memberToString();
+        }
         Class<?> type = value.getClass();
         if (!type.isArray())    // primitive, string, class, enum const,
                                 // or annotation
             return value.toString();
 
< prev index next >