< prev index next >

src/java.base/share/classes/java/lang/Exception.java

Print this page

        

@@ -41,10 +41,11 @@
  * @see     java.lang.Error
  * @jls 11.2 Compile-Time Checking of Exceptions
  * @since   1.0
  */
 public class Exception extends Throwable {
+    @java.io.Serial
     static final long serialVersionUID = -3387516993124229948L;
 
     /**
      * Constructs a new exception with {@code null} as its detail message.
      * The cause is not initialized, and may subsequently be initialized by a
< prev index next >