< prev index next >

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

Print this page




  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package sun.reflect.annotation;
  27 
  28 /**
  29  * An instance of this class is stored in an AnnotationInvocationHandler's
  30  * "memberValues" map in lieu of a value for an annotation member that
  31  * cannot be returned due to some exceptional condition (typically some
  32  * form of illegal evolution of the annotation class).  The ExceptionProxy
  33  * instance describes the exception that the dynamic proxy should throw if
  34  * it is queried for this member.
  35  *
  36  * @author  Josh Bloch
  37  * @since   1.5
  38  */
  39 public abstract class ExceptionProxy implements java.io.Serializable {

  40     private static final long serialVersionUID = 7241930048386631401L;
  41     protected abstract RuntimeException generateException();
  42 }


  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package sun.reflect.annotation;
  27 
  28 /**
  29  * An instance of this class is stored in an AnnotationInvocationHandler's
  30  * "memberValues" map in lieu of a value for an annotation member that
  31  * cannot be returned due to some exceptional condition (typically some
  32  * form of illegal evolution of the annotation class).  The ExceptionProxy
  33  * instance describes the exception that the dynamic proxy should throw if
  34  * it is queried for this member.
  35  *
  36  * @author  Josh Bloch
  37  * @since   1.5
  38  */
  39 public abstract class ExceptionProxy implements java.io.Serializable {
  40     @java.io.Serial
  41     private static final long serialVersionUID = 7241930048386631401L;
  42     protected abstract RuntimeException generateException();
  43 }
< prev index next >