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

Introspector not returning the correct BeanInfo for class name collision

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 1.4.0, 1.4.0_01, 1.4.1
    • Fix Version/s: 1.4.2
    • Component/s: client-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      mantis
    • CPU:
      generic, x86
    • OS:
      generic, windows_nt, windows_2000

      Description

      Seems like a duplicate of 4346874 but this time a simple solution is provided.

      Rich, the developer here who works most with the introspector has been
      trying to fix a bug recently that occurs where users create a class that
      has the same name as one that exists that has a BeanInfo class defined for
      it. For example, suppose there is the class somepackage.WindowBeanInfo
      that is in the introspector's search path designed to provide the
      descriptors for java.awt.Window. The user may create their own class
      called com.mycorp.myapp.Window, and what occurs is that the introspector
      picks up the WindowBeanInfo class designed for the AWT class. This is
      causing us problems because the property sheet shows the wrong set of
      details, the icon and customizer are from the wrong class, etc.... The
      best fix seems to be in the Introspector itself that actually checks the
      value of getBeanClass() in the bean descriptor before using the incorrect
      BeanInfo as a match.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mdavidsosunw Mark Davidson (Inactive)
              Reporter:
              mdavidsosunw Mark Davidson (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: