Catch runtime exceptions to make class loader race conditions easier to debug. (#608)
Signed-off-by: dblock <dblock@amazon.com>
This commit is contained in:
parent
2581f3d450
commit
58f9aaccb0
|
@ -183,6 +183,8 @@ public class LegacyESVersion extends Version {
|
|||
"expected [" + version.id + "] to be uniquely mapped but saw [" + maybePrevious + "] and [" + version + "]";
|
||||
} catch (final IllegalAccessException e) {
|
||||
assert false : "Version field [" + fieldName + "] should be public";
|
||||
} catch (final RuntimeException e) {
|
||||
assert false : "Version field [" + fieldName + "] threw [" + e + "] during initialization";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue