jdk/test/java/beans/Introspector/Test7172865.java
author lana
Tue, 23 May 2017 21:11:42 +0000
changeset 45187 331a6542b5b8
parent 28965 9468d534ab8c
permissions -rw-r--r--
Added tag jdk-10+7 for changeset d554736d963e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
20110
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
     1
/*
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
     2
 * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
     4
 *
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
     7
 * published by the Free Software Foundation.
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
     8
 *
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    13
 * accompanied this code).
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    14
 *
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    18
 *
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    21
 * questions.
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    22
 */
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    23
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    24
import java.beans.IndexedPropertyDescriptor;
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    25
import java.beans.MethodDescriptor;
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    26
import java.beans.PropertyDescriptor;
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    27
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    28
/*
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    29
 * @test
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    30
 * @bug 7172854 7172865
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    31
 * @summary Tests that cached methods are not lost
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    32
 * @author Sergey Malenkov
28965
9468d534ab8c 8072770: [TESTBUG] Some Introspector tests fail with a Java heap bigger than 4GB
simonis
parents: 20110
diff changeset
    33
 * @run main/othervm -Xmx128m Test7172865
20110
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    34
 */
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    35
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    36
public class Test7172865 {
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    37
    public static void main(String[] args) throws Exception {
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    38
        int errors = 0;
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    39
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    40
        MethodDescriptor md = new MethodDescriptor(Test7172865.class.getMethod("getGood"));
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    41
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    42
        errors += test(PropertyDescriptor.class, "good", true);
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    43
        PropertyDescriptor pdGoodString = new PropertyDescriptor("good", Test7172865.class, "getGood", "setGood");
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    44
        PropertyDescriptor pdGoodMethod = new PropertyDescriptor("good",
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    45
                Test7172865.class.getMethod("getGood"),
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    46
                Test7172865.class.getMethod("setGood", args.getClass()));
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    47
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    48
        errors += test(PropertyDescriptor.class, "bad", false);
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    49
        PropertyDescriptor pdBadString = new PropertyDescriptor("bad", Test7172865.class, "getBad", null);
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    50
        PropertyDescriptor pdBadMethod = new PropertyDescriptor("bad",
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    51
                Test7172865.class.getMethod("getBad"),
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    52
                Test7172865.class.getMethod("setBad", args.getClass()));
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    53
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    54
        errors += test(IndexedPropertyDescriptor.class, "good", true);
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    55
        IndexedPropertyDescriptor ipdGoodString = new IndexedPropertyDescriptor("good", Test7172865.class, "getGood", "setGood", "getGood", "setGood");
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    56
        IndexedPropertyDescriptor ipdGoodMethod = new IndexedPropertyDescriptor("good",
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    57
                Test7172865.class.getMethod("getGood"),
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    58
                Test7172865.class.getMethod("setGood", args.getClass()),
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    59
                Test7172865.class.getMethod("getGood", Integer.TYPE),
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    60
                Test7172865.class.getMethod("setGood", Integer.TYPE, String.class));
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    61
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    62
        errors += test(IndexedPropertyDescriptor.class, "bad", false);
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    63
        IndexedPropertyDescriptor ipdBadString = new IndexedPropertyDescriptor("bad", Test7172865.class, "getBad", null, "getBad", null);
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    64
        IndexedPropertyDescriptor ipdBadMethod = new IndexedPropertyDescriptor("bad",
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    65
                Test7172865.class.getMethod("getBad"),
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    66
                Test7172865.class.getMethod("setBad", args.getClass()),
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    67
                Test7172865.class.getMethod("getBad", Integer.TYPE),
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    68
                Test7172865.class.getMethod("setBad", Integer.TYPE, String.class));
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    69
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    70
        for (int i = 1; i <= 2; i++) {
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    71
            System.out.println("STEP: " + i);
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    72
            errors += test("md", null != md.getMethod());
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    73
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    74
            errors += test("pdGoodString", pdGoodString, true, true);
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    75
            errors += test("pdGoodMethod", pdGoodMethod, true, true);
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    76
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    77
            errors += test("pdBadString", pdBadString, true, false);
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    78
            errors += test("pdBadMethod", pdBadMethod, true, true);
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    79
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    80
            errors += test("ipdGoodString", ipdGoodString, true, true, true, true);
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    81
            errors += test("ipdGoodMethod", ipdGoodMethod, true, true, true, true);
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    82
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    83
            errors += test("ipdBadString", ipdBadString, true, false, true, false);
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    84
            errors += test("ipdBadMethod", ipdBadMethod, true, true, true, true);
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    85
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    86
            try {
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    87
                int[] array = new int[1024];
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    88
                while (true) {
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    89
                    array = new int[array.length << 1];
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    90
                }
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    91
            }
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    92
            catch (OutOfMemoryError error) {
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    93
                System.gc();
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    94
            }
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    95
        }
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    96
        if (errors > 0) {
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    97
            throw new Error("found " + errors + " errors");
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    98
        }
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
    99
    }
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
   100
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
   101
    private static int test(Class<?> type, String property, boolean value) {
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
   102
        String message = type.getSimpleName() + "(" + property + ") ";
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
   103
        try {
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
   104
            type.getConstructor(String.class, Class.class).newInstance(property, Test7172865.class);
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
   105
            message += "passed";
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
   106
        }
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
   107
        catch (Exception exception) {
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
   108
            message += "failed";
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
   109
            value = !value;
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
   110
        }
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
   111
        if (value) {
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
   112
            message += " as expected";
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
   113
        }
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
   114
        System.out.println(message);
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
   115
        return value ? 0 : 1;
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
   116
    }
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
   117
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
   118
    private static int test(String message, boolean value) {
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
   119
        System.out.println(message + ": " + (value ? "passed" : "failed"));
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
   120
        return value ? 0 : 1;
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
   121
    }
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
   122
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
   123
    private static int test(String message, PropertyDescriptor pd, boolean rm, boolean wm) {
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
   124
        return test(message + ".Read", rm == (null != pd.getReadMethod()))
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
   125
             + test(message + ".Write", wm == (null != pd.getWriteMethod()));
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
   126
    }
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
   127
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
   128
    private static int test(String message, IndexedPropertyDescriptor ipd, boolean rm, boolean wm, boolean irm, boolean iwm) {
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
   129
        return test(message, ipd, rm, wm)
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
   130
             + test(message + ".IndexedRead", irm == (null != ipd.getIndexedReadMethod()))
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
   131
             + test(message + ".IndexedWrite", iwm == (null != ipd.getIndexedWriteMethod()));
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
   132
    }
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
   133
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
   134
    public String[] getGood() {
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
   135
        return null;
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
   136
    }
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
   137
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
   138
    public String getGood(int index) {
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
   139
        return null;
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
   140
    }
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
   141
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
   142
    public void setGood(String[] good) {
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
   143
    }
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
   144
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
   145
    public void setGood(int index, String value) {
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
   146
    }
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
   147
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
   148
    public String[] getBad() {
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
   149
        return null;
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
   150
    }
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
   151
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
   152
    public String getBad(int index) {
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
   153
        return null;
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
   154
    }
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
   155
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
   156
    public Test7172865 setBad(String[] bad) {
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
   157
        return null;
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
   158
    }
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
   159
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
   160
    public Test7172865 setBad(int index, String value) {
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
   161
        return null;
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
   162
    }
85b98c3054f6 7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
malenkov
parents:
diff changeset
   163
}