Print exception in MethodHandleHelper (#2097)

print exception caused by xyz
This commit is contained in:
Lennart Lösche authored and GitHub committed 2023-01-14 01:00:56 +00:00
1 parent bdbbb7cb9c
commit d0b274249c
1 file changed
+1 -1
@@ -100,7 +100,7 @@ final class MethodHandleHelper {
return new DefaultFieldAccessor(field, setter, getter, staticField);
} catch (IllegalAccessException | NoSuchFieldException exception) {
// NoSuchFieldException can never happen, the field always exists
throw new IllegalStateException("Unable to access field " + field);
throw new IllegalStateException("Unable to access field " + field, exception);
}
}