-
Bug
-
Resolution: Fixed
-
P4
-
8
-
None
-
b06
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8067587 | 8u45 | Unassigned | P4 | Resolved | Fixed | b01 |
JDK-8049255 | 8u40 | Sergey Bylokhov | P4 | Resolved | Fixed | b17 |
JDK-8069949 | emb-8u47 | Unassigned | P4 | Resolved | Fixed | team |
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.
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.
- backported by
-
JDK-8049255 Do not prefer indexed properties
-
- Resolved
-
-
JDK-8067587 Do not prefer indexed properties
-
- Resolved
-
-
JDK-8069949 Do not prefer indexed properties
-
- Resolved
-
- relates to
-
JDK-8034164 Introspector ignores indexed part of the property sometimes
-
- Resolved
-
-
JDK-8144762 Introspector - overloaded methods
-
- Closed
-