-
Bug
-
Resolution: Fixed
-
P3
-
5.0
-
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
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