Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-5424 Confluence fails to start up on Harmony
  3. HARMONY-5675

[classlib][beans] Introspector unable to determine set method correctly

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • Debian Linux 32

    Description

      In some tricky situations java.beans.Introspector is unable to determine bean's set method correctly. Please see the test case below.

      IntrospectorTest.java

      import java.beans.*;
      import java.io.*;

      public class IntrospectorTest {
      public static void main(String argv[]) throws Exception {
      BeanInfo bInfo = Introspector.getBeanInfo(TstBean.class);
      int n = 0;

      for (PropertyDescriptor desc: bInfo.getPropertyDescriptors())

      { System.out.println(" " + desc.getName() + " " + desc.getReadMethod() + " " + desc.getWriteMethod()); n++; }

      System.out.println("TOTAL: " + n + " properties");

      }
      }

      class TstBean {

      public void setProp1(String uri)
      {
      }

      public void setProp1(Integer i)
      {
      }

      public Integer getProp1()

      { return null; }

      }

      This issue prevents Confluence from loading successfully on Harmony.

      Attachments

        1. Harmony-5675.diff
          0.6 kB
          Tony Wu
        2. H5675-StandardBeanInfo.patch
          19 kB
          Alexei Zakharov
        3. H5675-IntrospectorTest.patch
          10 kB
          Alexei Zakharov

        Issue Links

          Activity

            People

              zakha Alexei Zakharov
              zakha Alexei Zakharov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: