[ 
https://issues.apache.org/jira/browse/COLLECTIONS-842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17761758#comment-17761758
 ] 

Julian Reschke edited comment on COLLECTIONS-842 at 9/4/23 9:35 AM:
--------------------------------------------------------------------

I'm a bit concerned because Java 21 will be out next month, and there still 
doesn't seem to be a plan how to deal with this.

We had similar issues in the past in Jackrabbit (java.security.acl, 
https://issues.apache.org/jira/browse/JCR-4246), so let me provide some ideas...

What we did back then:

- deprecate the problematic API, and add logging for cases when the problematic 
API is still used
- add a replacement that will be compatible with future Java versions

For a transition period, we kept both, and increased the default logging level 
for cases where the deprecated API was used.



was (Author: reschke):
I'm a bit concerned because Java 21 will be out next month, and there still 
doesn't seem to be a plan how to deal with this.

As we had similar issues in the past in Jackrabbit (java.security.acl, 
https://issues.apache.org/jira/browse/JCR-4246).

What we did back then:

- deprecate the problematic API, and add logging for cases when the problematic 
API is still used
- add a replacement that will be compatible with future Java versions

For a transition period, we kept both, and increased the default logging level 
for cases where the deprecated API was used.


> AbstractLinkedList apparently incompatible with JDK 21's java.util.List
> -----------------------------------------------------------------------
>
>                 Key: COLLECTIONS-842
>                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-842
>             Project: Commons Collections
>          Issue Type: Bug
>          Components: List
>            Reporter: Julian Reschke
>            Priority: Major
>
> ...it returns "boolean" in commons-collections4, but is void in JDK 21 (see 
> https://download.java.net/java/early_access/jdk21/docs/api/java.base/java/util/List.html#addLast(E))



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to