Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8034085

Do not prefer indexed properties

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8
    • Fix Version/s: 9
    • Component/s: client-libs
    • Labels:
      None

      Backports

        Description

        The java.awt.Window class contains following methods:

            public void setSize(Dimension d) {
                super.setSize(d);
            }

            public void setSize(int width, int height) {
                super.setSize(width, height);
            }

        The Introspector class prefers the second method and creates the IndexedPropertyDescriptor object. Actually, it is not an indexed write method and we should create the PropertyDescriptor object, based on the first method.

        The problem is that there are two properties, which contradict each other: normal property of the Dimension type and indexed property of the int type. We should ignore any indexed access method, because the type of normal property is not an array.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                malenkov Sergey Malenkov (Inactive)
                Reporter:
                malenkov Sergey Malenkov (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: