< prev index next >

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

Print this page
*** 64,11 ***
              if (isStatic()) {
                  return (byte) getter.invokeExact();
              } else {
                  return (byte) getter.invokeExact(obj);
              }
!         } catch (IllegalArgumentException|NullPointerException e) {
              throw e;
          } catch (ClassCastException e) {
              throw newGetIllegalArgumentException(obj);
          } catch (Throwable e) {
              throw new InternalError(e);
--- 64,11 ---
              if (isStatic()) {
                  return (byte) getter.invokeExact();
              } else {
                  return (byte) getter.invokeExact(obj);
              }
!         } catch (IllegalArgumentException|IllegalStateException|NullPointerException e) {
              throw e;
          } catch (ClassCastException e) {
              throw newGetIllegalArgumentException(obj);
          } catch (Throwable e) {
              throw new InternalError(e);

*** 135,11 ***
              if (isStatic()) {
                  setter.invokeExact(b);
              } else {
                  setter.invokeExact(obj, b);
              }
!         } catch (IllegalArgumentException|NullPointerException e) {
              throw e;
          } catch (ClassCastException e) {
              // receiver is of invalid type
              throw newSetIllegalArgumentException(obj);
          } catch (Throwable e) {
--- 135,11 ---
              if (isStatic()) {
                  setter.invokeExact(b);
              } else {
                  setter.invokeExact(obj, b);
              }
!         } catch (IllegalArgumentException|IllegalStateException|NullPointerException e) {
              throw e;
          } catch (ClassCastException e) {
              // receiver is of invalid type
              throw newSetIllegalArgumentException(obj);
          } catch (Throwable e) {
< prev index next >