< prev index next >

src/java.base/share/classes/jdk/internal/reflect/MethodHandleBooleanFieldAccessorImpl.java

Print this page
@@ -60,11 +60,11 @@
              if (isStatic()) {
                  return (boolean) getter.invokeExact();
              } else {
                  return (boolean) 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);

@@ -129,11 +129,11 @@
              if (isStatic()) {
                  setter.invokeExact(z);
              } else {
                  setter.invokeExact(obj, z);
              }
-         } 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 >