8143850: retrofit ArrayDeque to implement List

Alex Foster alexfoster at hotmail.ca
Tue Jun 26 19:04:52 UTC 2018


Hi,
<https://bugs.openjdk.java.net/browse/JDK-8143850>


<https://bugs.openjdk.java.net/browse/JDK-8143850>

I did this awhile ago and I'd like to submit it.

I believe it needs to be a new class because it changes the behavior of equals and hashcode.

My implementation is based off of the java 8 version I think and it has changed a lot since then, I could add some of the improvements if you want.

Also I'm not sure if we should make a new Deque + List interface for it to implement or not.


Code:

https://pastebin.com/suXMfMZW

Bug:

https://bugs.openjdk.java.net/browse/JDK-8143850

Previous discussion:<https://bugs.openjdk.java.net/browse/JDK-8143850>

<https://bugs.openjdk.java.net/browse/JDK-8143850>http://mail.openjdk.java.net/pipermail/core-libs-dev/2014-February/024938.html


<https://bugs.openjdk.java.net/browse/JDK-8143850>Alex<http://mail.openjdk.java.net/pipermail/core-libs-dev/2014-February/024938.html>


More information about the core-libs-dev mailing list