< prev index next > src/java.base/share/classes/jdk/internal/reflect/MethodHandleByteFieldAccessorImpl.java
Print this page
if (isStatic()) {
return (byte) getter.invokeExact();
} else {
return (byte) getter.invokeExact(obj);
}
- } catch (IllegalArgumentException|NullPointerException e) {
+ } catch (IllegalArgumentException|IllegalStateException|NullPointerException e) {
throw e;
} catch (ClassCastException e) {
throw newGetIllegalArgumentException(obj);
} catch (Throwable e) {
throw new InternalError(e);
if (isStatic()) {
setter.invokeExact(b);
} else {
setter.invokeExact(obj, b);
}
- } catch (IllegalArgumentException|NullPointerException e) {
+ } catch (IllegalArgumentException|IllegalStateException|NullPointerException e) {
throw e;
} catch (ClassCastException e) {
// receiver is of invalid type
throw newSetIllegalArgumentException(obj);
} catch (Throwable e) {
< prev index next >