test/jdk/java/beans/Introspector/Test8034085.java
author lancea
Thu, 14 Nov 2019 10:54:32 -0500
changeset 59083 3e4d8b5856f3
parent 47216 71c04702a3d5
permissions -rw-r--r--
8234080: jdk/nio/zipfs/CRCWriteTest.java fails Reviewed-by: clanger, amlu
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
23308
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
     1
/*
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
     2
 * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
     4
 *
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
     7
 * published by the Free Software Foundation.
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
     8
 *
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    13
 * accompanied this code).
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    14
 *
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    18
 *
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    21
 * questions.
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    22
 */
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    23
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    24
import java.awt.Window;
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    25
import java.beans.IndexedPropertyDescriptor;
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    26
import java.beans.PropertyDescriptor;
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    27
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    28
/*
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    29
 * @test
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    30
 * @bug 8034085
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    31
 * @summary Tests that Introspector ignores indexed getter and setter for incorrect types
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    32
 * @author Sergey Malenkov
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    33
 */
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    34
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    35
public class Test8034085 {
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    36
    public static final StringBuilder ERROR = new StringBuilder();
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    37
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    38
    public static void main(String[] args) {
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    39
        test(Window.class, false, true, false, false);
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    40
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    41
        test(Bean0000.class, false, false, false, false);
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    42
        test(Bean0001.class, false, false, false, true);
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    43
        test(Bean0010.class, false, false, true, false);
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    44
        test(Bean0011.class, false, false, true, true);
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    45
        test(Bean0100.class, false, true, false, false);
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    46
        test(Bean0101.class, false, true, false, false);
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    47
        test(Bean0110.class, false, true, false, false);
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    48
        test(Bean0111.class, false, true, false, false);
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    49
        test(Bean1000.class, true, false, false, false);
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    50
        test(Bean1001.class, true, false, false, false);
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    51
        test(Bean1010.class, true, false, false, false);
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    52
        test(Bean1011.class, true, false, false, false);
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    53
        test(Bean1100.class, true, true, false, false);
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    54
        test(Bean1101.class, true, true, false, false);
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    55
        test(Bean1110.class, true, true, false, false);
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    56
        test(Bean1111.class, true, true, false, false);
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    57
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    58
        if (0 < ERROR.length()) {
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    59
            throw new Error(ERROR.toString());
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    60
        }
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    61
    }
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    62
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    63
    private static void test(Class<?> type, boolean read, boolean write, boolean readIndexed, boolean writeIndexed) {
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    64
        PropertyDescriptor pd = BeanUtils.findPropertyDescriptor(type, "size");
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    65
        if (pd != null) {
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    66
            test(type, "read", read, null != pd.getReadMethod());
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    67
            test(type, "write", write, null != pd.getWriteMethod());
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    68
            if (pd instanceof IndexedPropertyDescriptor) {
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    69
                IndexedPropertyDescriptor ipd = (IndexedPropertyDescriptor) pd;
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    70
                test(type, "indexed read", readIndexed, null != ipd.getIndexedReadMethod());
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    71
                test(type, "indexed write", writeIndexed, null != ipd.getIndexedWriteMethod());
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    72
            } else if (readIndexed || writeIndexed) {
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    73
                error(type, "indexed property does not exist");
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    74
            }
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    75
        } else if (read || write || readIndexed || writeIndexed) {
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    76
            error(type, "property does not exist");
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    77
        }
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    78
    }
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    79
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    80
    private static void test(Class<?> type, String name, boolean expected, boolean actual) {
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    81
        if (expected && !actual) {
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    82
            error(type, name + " method does not exist");
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    83
        } else if (!expected && actual) {
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    84
            error(type, name + " method is not expected");
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    85
        }
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    86
    }
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    87
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    88
    private static void error(Class<?> type, String message) {
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    89
        ERROR.append("\n\t\t").append(type.getSimpleName()).append(".size: ").append(message);
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    90
    }
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    91
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    92
    public static class Bean0000 {
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    93
    }
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    94
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    95
    public static class Bean0001 {
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    96
        public void setSize(int index, int value) {
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    97
        }
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    98
    }
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
    99
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   100
    public static class Bean0010 {
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   101
        public int getSize(int index) {
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   102
            return 0;
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   103
        }
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   104
    }
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   105
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   106
    public static class Bean0011 {
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   107
        public int getSize(int index) {
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   108
            return 0;
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   109
        }
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   110
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   111
        public void setSize(int index, int value) {
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   112
        }
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   113
    }
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   114
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   115
    public static class Bean0100 {
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   116
        public void setSize(int value) {
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   117
        }
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   118
    }
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   119
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   120
    public static class Bean0101 {
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   121
        public void setSize(int value) {
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   122
        }
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   123
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   124
        public void setSize(int index, int value) {
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   125
        }
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   126
    }
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   127
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   128
    public static class Bean0110 {
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   129
        public void setSize(int value) {
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   130
        }
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   131
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   132
        public int getSize(int index) {
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   133
            return 0;
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   134
        }
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   135
    }
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   136
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   137
    public static class Bean0111 {
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   138
        public void setSize(int value) {
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   139
        }
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   140
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   141
        public int getSize(int index) {
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   142
            return 0;
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   143
        }
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   144
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   145
        public void setSize(int index, int value) {
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   146
        }
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   147
    }
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   148
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   149
    public static class Bean1000 {
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   150
        public int getSize() {
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   151
            return 0;
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   152
        }
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   153
    }
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   154
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   155
    public static class Bean1001 {
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   156
        public int getSize() {
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   157
            return 0;
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   158
        }
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   159
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   160
        public void setSize(int index, int value) {
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   161
        }
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   162
    }
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   163
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   164
    public static class Bean1010 {
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   165
        public int getSize() {
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   166
            return 0;
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   167
        }
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   168
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   169
        public int getSize(int index) {
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   170
            return 0;
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   171
        }
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   172
    }
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   173
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   174
    public static class Bean1011 {
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   175
        public int getSize() {
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   176
            return 0;
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   177
        }
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   178
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   179
        public int getSize(int index) {
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   180
            return 0;
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   181
        }
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   182
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   183
        public void setSize(int index, int value) {
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   184
        }
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   185
    }
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   186
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   187
    public static class Bean1100 {
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   188
        public int getSize() {
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   189
            return 0;
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   190
        }
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   191
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   192
        public void setSize(int value) {
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   193
        }
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   194
    }
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   195
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   196
    public static class Bean1101 {
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   197
        public int getSize() {
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   198
            return 0;
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   199
        }
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   200
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   201
        public void setSize(int value) {
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   202
        }
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   203
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   204
        public void setSize(int index, int value) {
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   205
        }
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   206
    }
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   207
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   208
    public static class Bean1110 {
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   209
        public int getSize() {
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   210
            return 0;
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   211
        }
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   212
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   213
        public void setSize(int value) {
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   214
        }
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   215
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   216
        public int getSize(int index) {
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   217
            return 0;
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   218
        }
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   219
    }
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   220
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   221
    public static class Bean1111 {
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   222
        public int getSize() {
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   223
            return 0;
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   224
        }
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   225
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   226
        public void setSize(int value) {
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   227
        }
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   228
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   229
        public int getSize(int index) {
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   230
            return 0;
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   231
        }
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   232
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   233
        public void setSize(int index, int value) {
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   234
        }
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   235
    }
ce9d5a78334f 8034085: Do not prefer indexed properties
malenkov
parents:
diff changeset
   236
}