commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary Gregory (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (COLLECTIONS-692) Replace use of deprecated Class#newInstance() #49
Date Fri, 27 Jul 2018 14:34:00 GMT

     [ https://issues.apache.org/jira/browse/COLLECTIONS-692?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Gary Gregory closed COLLECTIONS-692.
------------------------------------
       Resolution: Fixed
    Fix Version/s: 4.3

In git master.

> Replace use of deprecated Class#newInstance() #49
> -------------------------------------------------
>
>                 Key: COLLECTIONS-692
>                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-692
>             Project: Commons Collections
>          Issue Type: New Feature
>            Reporter: Gary Gregory
>            Assignee: Gary Gregory
>            Priority: Major
>             Fix For: 4.3
>
>
> Java 9 deprecates [SetUniqueList] Class#newInstance().
> Fix two call sites:
> - {{org.apache.commons.collections4.map.MultiValueMap.ReflectionFactory.create()}}
> - {{org.apache.commons.collections4.list.SetUniqueList.createSetBasedOnList(Set<E>,
List<E>)}}
> The patch https://github.com/apache/commons-collections/pull/49 is incomplete and incorrect:
> - Fix to {{org.apache.commons.collections4.map.MultiValueMap.ReflectionFactory.create()}}
is missing
> - Patch to {{org.apache.commons.collections4.list.SetUniqueList.createSetBasedOnList(Set<E>,
List<E>)}} performs extra work by adding the initial values to the new set twice.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message