PQ79998: using reflection on overloaded setters, onyl the first is used | |||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||
![]() 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-20030617Problem 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 is sysrouted FROM one or more of the following: APAR is sysrouted TO one or more of the following: Modules/Macros
Publications Referenced
|
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
(C) Copyright IBM Corporation 2000, 2008. All Rights Reserved.