Chapter 3: Notes on Interstage Operation
3-34
Notes on the Return Value of
java.beans.PropertyDescriptor.getWriteMethod()
JDK/JRE 1.3.1_08 and 1.4.0_01 solved the problem "bean methods may not be obtained," which
caused by a problem in java.beans.Introspector.getBeanInfor(). The operation of the
java.beans.Introspector that may have produced different results on different JavaVMs (because the
order in which methods should return was not defined in the JavaBeans specifications) has been
corrected. Accordingly, for an application in which the parameter data type of the set***() method that
sets class properties does not match the data type of the return value of the get***() method that obtains
class properties, null will be returned as a return value from PropertyDescriptor.getWriteMethod(). For
this reason, make a program so that these data types match.