On Sun, 14 Mar 2021 17:18:11 GMT, Сергей Цыпанов 
<github.com+10835776+stsypa...@openjdk.org> wrote:

>> If that's the only use case, I recommend changing the return type to a 
>> deque, and replace the linked list with an array deque instead (as done 
>> elsewhere in this pr)
>
> Looks like it's never specified in JavaDoc which particular implementation of 
> List is used in fields of affected classes, so it's quite odd to me that 
> someone would rely on that when using reflection. But your point about 
> backward compatibility is reasonable, so I'll revert mentioned changes.

Nothing outside of the JDK should be hacking into this private field of a 
non-exposed class, this should not be a concern here.

-------------

PR: https://git.openjdk.java.net/jdk/pull/2744

Reply via email to