equal
deleted
inserted
replaced
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) { |