Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4523072

REGRESSION: java.beans.Introspector.getBeanInfo can fail if a class has an illfo

XMLWordPrintable

    • 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.
      ======================================================================

            mdavidsosunw Mark Davidson (Inactive)
            pallenba Peter Allenbach (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: