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

(ann) Binary compat - old annotations on evolved class files can still be read

XMLWordPrintable

    • rc
    • generic
    • generic

      Adding And Removing Potential Targets under Binary Compatibility not working as spec Spec.

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

      It is mentioned that:-
      Class files containing annotations on the removed targets will behave as if those annotatioins were not present.

      It is not working as sper the spec, one can still read the annotations on the removed targets from the class file.

      This is happening with Tiger-beta2 build-41
      I have tried on Solaris-9, not tried on other platforms.

      How to reproduce:-
      Find the attached TargetTest1.tar
      untar the same.
      cd to TargetTest1/Helper directory
      compile the source files javac *.java
      copy A.class file to TargetTest1 directory
      cd to TargetTest1 directory
      compile the source files javac *.java
      execute the TargetTest1 java TargetTest1

      One can see the annotations on the removed targets are read from the class
      file that is A.class
       

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: