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

Exception comes to occur at getBeanInfo() in 1.4.X, not in 1.3.1

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.4.2
    • client-libs
    • x86
    • windows_2000

      An Exception occurs at getBeanInfo() method in 1.4.X, although it does not
      in 1.3.1_0X.


      REPRODUCE:
       1. Compile the attached 3 files
          (TestBean.java, TestBeanParent.java, TestMain.java)
       2. Launch "java TestMain TestBean"


      BEHAVIOR:

      - Actual behavior(1.4.X)

      goedel[74]% java TestMain TestBean
      Exception in thread "main" java.lang.Error: PropertyDescriptor: internal error while merging PDs: type mismatch between read and write methods
              at java.beans.PropertyDescriptor.<init>(PropertyDescriptor.java:343)
              at java.beans.IndexedPropertyDescriptor.<init>(IndexedPropertyDescriptor.java:243)
              at java.beans.Introspector.processPropertyDescriptors(Introspector.java:715)
              at java.beans.Introspector.getTargetPropertyInfo(Introspector.java:549)
              at java.beans.Introspector.getBeanInfo(Introspector.java:372)
              at java.beans.Introspector.getBeanInfo(Introspector.java:144)
              at TestMain.main(TestMain.java:13)


      - Expected behavior(1.3.1_06)

      goedel[20]% java TestMain TestBean
      PropertyDescriptor[0]: class
        Type : class java.lang.Class
        Getter: public final native java.lang.Class java.lang.Object.getClass()
        Setter: null
      PropertyDescriptor[1]: rec
        Type : class java.lang.String
        Getter: null
        Setter: public void TestBeanParent.setRec(java.lang.String)
        IndexedGetter: public TestBean TestBeanParent.getRec(int)
        IndexedSetter: null

      CONFIGRATION:
        OS : Solaris7/Windows2000(SP2, Japanese)
        JDK:
          java version "1.4.1"
          Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-b21)
          Java HotSpot(TM) Client VM (build 1.4.1-b21, mixed mode)

          java version "1.4.2-beta"
          Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-beta-b13)
          Java HotSpot(TM) Client VM (build 1.4.2-beta-b13, mixed mode)

      ==========================================================================

            mdavidsosunw Mark Davidson (Inactive)
            tbaba Tadayuki Baba (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: