APAR status
Closed as program error.
Error description
We are having problems while using java.beans.PropertyDescriptor. getWriteMethod() and getReadMethod() and having a class with overloaded Setters. When we use java.lang.Reflect.Method class to compare the properties, it always gets the first set method from the class passed as an argument. There are three overloaded setters available for the class and one getter. One get method returns one of three datatype that was used in the setters. When we changed the order of Setters in the class that was used to compare, it works fine without any problem. Issue is this is only happening in Websphere environment. In Tomcat, Java SDK 1.3.1 environment it works fine without any modification. Why this is happening in Websphere? Is it a known problem? Is it being worked on? Can any one help me?
Local fix
If the order of the setters is changed in the class, then the problem is not seen.
Problem summary
When there are overloaded setter methods, java.lang.Reflect.Method class always gets the first set method from the class that is passed as an argument. According to the specification of beans, the setters and getters should be of the form shown below: public < PropertyType> get< PropertyName>(); public void set< PropertyName>(< PropertyType> a);
Problem conclusion
Code was modified such that the setter and getters are returned only if they are of the above type. . To obtain the fix: Install build 20031111 or later
Temporary fix
Comments
APAR Information
APAR number
PQ79508
Reported component name
JAVA(1.3/1.4 CO
Reported component ID
5648C9800
Reported release
31A
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2003-10-13
Closed date
2003-11-12
Last modified date
2003-11-12
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fix information
Fixed component name
JAVA(1.3/1.4 CO
Fixed component ID
5648C9800
Applicable component levels
R31A PSN
UP
R31L PSN
UP
R31O PSN
UP
R31W PSN
UP
[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SUPPORT","label":"IBM Worldwide Support"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"1.3.1","Edition":"","Line of Business":{"code":"","label":""}}]
Document Information
Modified date:
09 February 2022