2523N/A/*
2523N/A * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
2523N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
2523N/A *
2523N/A * This code is free software; you can redistribute it and/or modify it
2523N/A * under the terms of the GNU General Public License version 2 only, as
2523N/A * published by the Free Software Foundation.
2523N/A *
2523N/A * This code is distributed in the hope that it will be useful, but WITHOUT
2523N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
2523N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
2523N/A * version 2 for more details (a copy is included in the LICENSE file that
2523N/A * accompanied this code).
2523N/A *
2523N/A * You should have received a copy of the GNU General Public License version
2523N/A * 2 along with this work; if not, write to the Free Software Foundation,
2523N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
2523N/A *
2523N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2523N/A * or visit www.oracle.com if you need additional information or have any
2523N/A * questions.
2523N/A */
2523N/A
2523N/A/*
2523N/A * @test
2523N/A * @bug 6707234
2523N/A * @summary Tests setter in a complex bean
2523N/A * @author Sergey Malenkov
2523N/A */
2523N/A
2523N/Apublic class Test6707234 {
2523N/A public static void main(String[] args) {
2523N/A if (null == BeanUtils.getPropertyDescriptor(C.class, "number").getWriteMethod()) {
2523N/A throw new Error("no write method");
2523N/A }
2523N/A }
2523N/A
2523N/A public interface I {
2523N/A void setNumber(Object number);
2523N/A Number getNumber();
2523N/A }
2523N/A
2523N/A public class C implements I {
2523N/A public void setNumber(Object value) {
2523N/A }
2523N/A public void setNumber(Long value) {
2523N/A }
2523N/A public Long getNumber() {
2523N/A return null;
2523N/A }
2523N/A }
2523N/A}