PQ79998: using reflection on overloaded setters, onyl the first is used

 A fix is available

***SUPERCEDED*** 1.3.1 Java SDK, Java Tech Edition for WebSphere v5



APAR status
Closed as program error.

Error description
DEFECT:SOV,64883
When using reflection on overloaded setters, only the first
setter is used. If the object returned does not match the
param of the first setter, then null pointer exception occurs.


CUSTOMER DESCRIPTION OF SYMPTOMS:
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.
Local fix
Amar provided a patch fix(rt.jar) developed on top of IBM JDK
cn131-20030617
Problem summary
****************************************************************
* USERS AFFECTED: All users of IBM JDK version cn131-20030617. *
****************************************************************
* PROBLEM DESCRIPTION: Using reflection on overloaded          *
*                      setters, only the first is used.        *
****************************************************************
* RECOMMENDATION:                                              *
****************************************************************
When using reflection on overloaded setters, only the first
setter is used. If the object returned does not match the
param of the first setter, then NullPointer exception occurs.
Problem conclusion
This is a JDK defect SOV,64883 and is fixed in 131 SR7.
Temporary fix Comments
APAR information
APAR number PQ79998
Reported component name WAS NETWRK DEPL
Reported component ID 5630A3601
Reported release 00W
Status CLOSED PER
PE NoPE
HIPER NoHIPER
Special Attention NoSpecatt
Submitted date 2003-10-23
Closed date 2003-11-10
Last modified date 2003-11-10

APAR is sysrouted FROM one or more of the following:

APAR is sysrouted TO one or more of the following:

Modules/Macros
JDk          

Publications Referenced

Fix information

Applicable component levels
R00W PSY    UP


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > General
Operating system(s):
Software version: 00W
Software edition:
Reference #: PQ79998
IBM Group: Software Group
Modified date: Nov 10, 2003