src/java.base/share/classes/java/lang/InstantiationError.java
changeset 58288 48e480e56aad
parent 57956 e0b8b019d2f5
child 58679 9c3209ff7550
child 59201 b24f4caa1411
equal deleted inserted replaced
58287:a7f16447085e 58288:48e480e56aad
    24  */
    24  */
    25 
    25 
    26 package java.lang;
    26 package java.lang;
    27 
    27 
    28 /**
    28 /**
    29  * Thrown when an application tries to use the Java <code>new</code>
    29  * Thrown when an application tries to use the Java {@code new}
    30  * construct to instantiate an abstract class or an interface.
    30  * construct to instantiate an abstract class or an interface.
    31  * <p>
    31  * <p>
    32  * Normally, this error is caught by the compiler; this error can
    32  * Normally, this error is caught by the compiler; this error can
    33  * only occur at run time if the definition of a class has
    33  * only occur at run time if the definition of a class has
    34  * incompatibly changed.
    34  * incompatibly changed.
    42 class InstantiationError extends IncompatibleClassChangeError {
    42 class InstantiationError extends IncompatibleClassChangeError {
    43     @java.io.Serial
    43     @java.io.Serial
    44     private static final long serialVersionUID = -4885810657349421204L;
    44     private static final long serialVersionUID = -4885810657349421204L;
    45 
    45 
    46     /**
    46     /**
    47      * Constructs an <code>InstantiationError</code> with no detail  message.
    47      * Constructs an {@code InstantiationError} with no detail  message.
    48      */
    48      */
    49     public InstantiationError() {
    49     public InstantiationError() {
    50         super();
    50         super();
    51     }
    51     }
    52 
    52 
    53     /**
    53     /**
    54      * Constructs an <code>InstantiationError</code> with the specified
    54      * Constructs an {@code InstantiationError} with the specified
    55      * detail message.
    55      * detail message.
    56      *
    56      *
    57      * @param   s   the detail message.
    57      * @param   s   the detail message.
    58      */
    58      */
    59     public InstantiationError(String s) {
    59     public InstantiationError(String s) {