> On 17 Nov 2015, at 13:01, Doug Lea <d...@cs.oswego.edu> wrote:
> We added more tck tests to check this, and all pass.
> ClassCastException was/is thrown in two cases, without distinguishing them,
> which allowed a path merge by arranging that "cclass" is now the same as 
> "vclass" unless field is protected.
> 

My bad, sorry for the noise, i misread the code in throwAccessCheckException

—

Separately but related, i have a solution that allows VarHandles to be used in 
the A*FU implementations. However, i am not sure it would be possible to 
preserve the exact exception throwing behaviour and their content e.g. the type 
of a CAS expect value would likely be checked.

Paul.

Reply via email to