-
Bug
-
Resolution: Fixed
-
P2
-
1.4.0
-
rc1
-
x86
-
windows_nt
Name: pa48320 Date: 11/05/2001
If you have a class that has the method add(Foo) where the class Foo implements java.util.EventListener then java.beans.Introspector.getBeanInfo() will fail and throw an exception because the test for event listeners gets a zero length string. The problem happens in lines 797, 805, and 814 because there is no test for the string length. Line 832 makes an assumption about name length is clearly wrong in this case.
We have code that has worked fine up through version 1.3.x but fails to get the beaninfo in 1.4 because it sees the add() method incorrectly.
======================================================================