If static initialization of a class fails, a ExceptionInInitializerError
is thrown. Later accesses to this class will fail, too. They report
a NoClassDefFoundError. This is misleading, as the class has been
found in first place but the initialization failed.
To give more context, retain the previous ExceptionInInitializerError
and chain it into the NoClassDefFoundError.
is thrown. Later accesses to this class will fail, too. They report
a NoClassDefFoundError. This is misleading, as the class has been
found in first place but the initialization failed.
To give more context, retain the previous ExceptionInInitializerError
and chain it into the NoClassDefFoundError.