< 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 **** /* ! * Copyright (c) 2011, 2013, 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 --- 1,7 ---- /* ! * 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,32 **** --- 23,33 ---- * 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,45 **** 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"; --- 35,44 ----
*** 157,167 **** if (property == null) { observable.removeListener(this); } else if (!updating) { updating = true; try { ! MethodUtil.invoke(setter, bean, new Object[] {newValue}); property.fireValueChangedEvent(); } catch (IllegalAccessException e) { // ignore } catch (InvocationTargetException e) { // ignore --- 156,166 ---- if (property == null) { observable.removeListener(this); } else if (!updating) { updating = true; try { ! MethodHelper.invoke(setter, bean, new Object[] {newValue}); property.fireValueChangedEvent(); } catch (IllegalAccessException e) { // ignore } catch (InvocationTargetException e) { // ignore
< prev index next >