Removal planned (tentative) 31 December 2027
Moving from Commons Collections 3 to Collections 4 in AEM
Deprecated on 30 April 2021 with a tentative removal date of 31 December 2027.
Affected packages and APIs
org.apache.commons.collections.*
What to use instead
org.apache.commons.collections4 or standard JDK collections and streams.
How to fix it
- Change imports to collections4; generic signatures change, so fix compile errors.
- Prefer JDK streams where the helper is trivial.
How we detect it
- Readiness scan rule
commons-collections3: Apache Commons Collections 3.
Best Practices Analyzer reports it under OCU.
Can agents fix it?
High.
The rating is for Surge Migrate's AEM 6.5 code pipeline. Agents draft the change, deterministic rules check it, and a named engineer approves every pull request. Your team merges.
Source: Adobe Experience League. Checked 19 October 2026.