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

java.beans.Introspector misses write methods

    XMLWordPrintable

    Details

    • Subcomponent:
    • Introduced In Version:
      7
    • Resolved In Build:
      b55
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        This is a SUNBUG for https://bugs.openjdk.java.net/show_bug.cgi?id=100182

        Description


        Created an attachment (id=216) [details]
        BaseBean.java

        Given the attached source code, running IntrospectorTest against a jvm other
        then openjdk will print the following

        class
        public final native java.lang.Class java.lang.Object.getClass()
        null
        myBaseType
        public java.lang.Object MyBean.getMyBaseType()
        public void BaseBean.setMyBaseType(java.lang.Object)

        IF you run it with openjdk you'll miss the setter

        class
        public final native java.lang.Class java.lang.Object.getClass()
        null
        myBaseType
        public java.lang.String MyBean.getMyBaseType()
        null

        I've tested it using latest jdk versions 6 from ibm, jrockit and sun

        The affected java version is
        OpenJDK Runtime Environment (IcedTea6 1.9.7) (6b20-1.9.7-0ubuntu1)
        OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode)


        Comment #1

        Created an attachment (id=217) [details]
        MyBean.java


        Comment #2

        Created an attachment (id=218) [details]
        IntrospectorTest.java

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                malenkov Sergey Malenkov (Inactive)
                Reporter:
                tbell Tim Bell
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: