< prev index next >

modules/javafx.base/src/main/java/com/sun/javafx/property/adapter/PropertyDescriptor.java

Print this page
rev 10441 : imported patch fix-8177566-trampoline

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.  Oracle designates this

@@ -23,10 +23,11 @@
  * questions.
  */
 
 package com.sun.javafx.property.adapter;
 
+import com.sun.javafx.property.MethodHelper;
 import javafx.beans.property.Property;
 import javafx.beans.property.adapter.ReadOnlyJavaBeanProperty;
 import javafx.beans.value.ChangeListener;
 import javafx.beans.value.ObservableValue;
 

@@ -34,12 +35,10 @@
 import java.beans.PropertyVetoException;
 import java.beans.VetoableChangeListener;
 import java.lang.reflect.InvocationTargetException;
 import java.lang.reflect.Method;
 
-import sun.reflect.misc.MethodUtil;
-
 /**
  */
 public class PropertyDescriptor extends ReadOnlyPropertyDescriptor {
 
     private static final String ADD_VETOABLE_LISTENER_METHOD_NAME = "addVetoableChangeListener";

@@ -157,11 +156,11 @@
             if (property == null) {
                 observable.removeListener(this);
             } else if (!updating) {
                 updating = true;
                 try {
-                    MethodUtil.invoke(setter, bean, new Object[] {newValue});
+                    MethodHelper.invoke(setter, bean, new Object[] {newValue});
                     property.fireValueChangedEvent();
                 } catch (IllegalAccessException e) {
                     // ignore
                 } catch (InvocationTargetException e) {
                     // ignore
< prev index next >