<i18n dev> RFR: 8263561: Re-examine uses of LinkedList

Alan Bateman alanb at openjdk.java.net
Sun Mar 14 17:29:06 UTC 2021

On Sun, 14 Mar 2021 17:18:11 GMT, Сергей Цыпанов <github.com+10835776+stsypanov at 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

More information about the i18n-dev mailing list