Method.invoke() has thrown an Error

java.lang.Error
Javadoc
An {@code Error} is a subclass of {@code Throwable} that indicates serious problems that a reasonable application should not try to catch. Most such errors are abnormal conditions. The {@code ThreadDeath} error, though a "normal" condition, is also a subclass of {@code Error} because most applications should not try to catch it.

A method is not required to declare in its {@code throws} clause any subclasses of {@code Error} that might be thrown during the execution of the method but not caught, since these errors are abnormal conditions that should never occur. That is, {@code Error} and its subclasses are regarded as unchecked exceptions for the purposes of compile-time checking of exceptions. @author Frank Yellin @see java.lang.ThreadDeath @jls 11.2 Compile-Time Checking of Exceptions @since JDK1.0

at Test8027648.test
at Test8027648.main
at sun.reflect.NativeMethodAccessorImpl.invoke0
(source)
at sun.reflect.NativeMethodAccessorImpl.invoke
(source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(source)
at java.lang.reflect.Method.invoke
(source)
5 frames hidden

Typical Exception Messages

  1. the child property type is not override the parent property type

Origin

Test8027648.main() has thrown an Error

java.lang.Error
1 frames hidden
Test8027648.main
3Web pages

External results for this pattern (3)

  1. smlambertvia GitHub5 months ago
    the child property type is not override the parent property type
    Show stack trace
  2. Aleksandr Sakharukvia JDK Bug System2 years ago
    the child property type is not override the parent property type
    Show stack trace