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

Introspector overide PropertyDescriptor for generic type field defined in super class

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 8
    • 7
    • client-libs
    • None
    • 7
    • b56
    • other
    • other

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

        When you have a field with generic type where the generic is an interface
        Introspector overide the PropertyDescriptor into the method
        addPropertyDescriptor

        In my test case the field genericObject in BaseObject is supose to be bound.

        testcase.zip attached to this report.


        Test output in JDK7 build 14:

        % javac -g *.java
        % java -showversion MainTest
        java version "1.7.0-ea"
        Java(TM) SE Runtime Environment (build 1.7.0-ea-b14)
        Java HotSpot(TM) Tiered VM (build 1.7.0-ea-b14, mixed mode)

        class is bound: false
        genericObject is bound: true
        test is bound: true


        Test output in JDK7 build 15:

        % javac -g *.java
        % java -showversion MainTest
        java version "1.7.0-ea"
        Java(TM) SE Runtime Environment (build 1.7.0-ea-b15)
        Java HotSpot(TM) Tiered VM (build 1.7.0-ea-b15, mixed mode)

        class is bound: false
        genericObject is bound: false
        test is bound: true

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: