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

(ann) Serialized annotation with default does not throw IncompleteAnnotationExce

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      rc
    • CPU:
      generic
    • OS:
      generic

      Description

      libs/src/java_lang/metadata/Phase2/BinaryCompatibility/BinaryCompatibilityTest8
      libs/src/java_lang/metadata/Phase2/BinaryCompatibility/BinaryCompatibilityTest11

      In Section VIII Annotation Type Evolution (Binary Compatibility)
      Adding and Removing Defaults

      It is mentioned that:-
      Attempts to read the member from a compiled(or serialized) annotation that
      relied on the default will fail: the accessor will throw an IncompleteAnnotationException.

      This works fine in case of compiled annotation but in case of serialized annotation one gets the default value even though serialized annotation is
      read using the revised interface in which default value is being removed.

      To reproduce the bug please find the attached tar file. It has readme too.

      The problem is happening on
      Tiger-beta2 build-41.
      I have tried on Solaris-9 not sure about other platforms.

        Attachments

          Activity

            People

            Assignee:
            gbrachasunw Gilad Bracha (Inactive)
            Reporter:
            jsinghsunw Jit Singh (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: