Request to backport 7080038: "(ann) Serializable types in sun.reflect.annotation do not declare serialVersionUIDs" to OpenJDK 6

Joe Darcy joe.darcy at oracle.com
Tue Aug 23 13:53:07 PDT 2011


Hi Kelly.

Kelly O'Hair wrote:
> I assume this is being fixed in all releases, if so, approved.
>   

Correct; I've already pushed the fix to 7 update and JDK 8 and the 
sustaining team will be applying the fix to the 6 update train.  I'll do 
the push to OpenJDK 6 later today.

Thanks,

-Joe

> -kto
>
> On Aug 22, 2011, at 6:25 PM, Joe Darcy wrote:
>
>   
>> Hello.
>>
>> I hereby request to approval to backport
>>
>>  7080038: (ann) Serializable types in sun.reflect.annotation do not declare serialVersionUIDs
>>  http://hg.openjdk.java.net/jdk8/tl/jdk/rev/71e353aba896
>>
>> to OpenJDK 6.  Some more description of the change is on
>>
>>  http://mail.openjdk.java.net/pipermail/core-libs-dev/2011-August/007490.html
>>
>> The problematic fix for 6761678 "(ann) SecurityException in AnnotationInvocationHandler.getMemberMethods" has also present in OpenJDK 6 since b13:
>>
>>   http://hg.openjdk.java.net/jdk6/jdk6/jdk/rev/762dd71f0008
>>
>> This means that annotation objects with the correct serialVersionUIDs from JDK 5, Sun/Oracle's JDK 6, and OpenJDK 6 b01 through b12 have *not* been readable under OpenJDK 6 b13 to present (b23).
>>
>> Given that to my knowledge this issue has not previously been reported, I'm inferring this is not a common usage pattern for annotations.
>>
>> Operationally, if the fix for 7080038 is applied to in OpenJDK 6 b24, that will restore serial compatibility of annotations with OpenJDK 6 b01 through b12 (and JDK 5, etc.) at the cost of creating a incompatibility with b13 through b23.
>>
>> Since the original accidental change to the serialVersionUID went unnoticed, I'm hoping changing it back will also not cause any operational difficulties.
>>
>> Cheers,
>>
>> -Joe
>>     
>
>   



More information about the jdk6-dev mailing list