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

Gary Gregory reopened BEANUTILS-500:
------------------------------------

This changes breaks binary compatibility left and right:

{noformat}
[INFO] --- clirr-maven-plugin:2.8:check (default-cli) @ commons-beanutils ---
[INFO] artifact commons-beanutils:commons-beanutils: checking for updates from 
apache.snapshots
[INFO] artifact commons-beanutils:commons-beanutils: checking for updates from 
central
[INFO] Comparing to version: 1.9.3
[WARNING] Missing POM for 
commons-collections:commons-collections-testframework:jar:3.2.1
[ERROR] 7006: org.apache.commons.beanutils.BeanMap: Return type of method 
'protected org.apache.commons.collections.Transformer 
getTypeTransformer(java.lang.Class)' has been changed to 
org.apache.commons.collections4.Transformer
[ERROR] 4001: org.apache.commons.beanutils.BeanMap$Entry: Removed 
org.apache.commons.collections.KeyValue from the set of implemented interfaces
[ERROR] 5001: org.apache.commons.beanutils.BeanMap$Entry: Removed 
org.apache.commons.collections.keyvalue.AbstractKeyValue from the list of 
superclasses
[ERROR] 5001: org.apache.commons.beanutils.BeanMap$Entry: Removed 
org.apache.commons.collections.keyvalue.AbstractMapEntry from the list of 
superclasses
[ERROR] 4001: org.apache.commons.beanutils.BeanPredicate: Removed 
org.apache.commons.collections.Predicate from the set of implemented interfaces
[ERROR] 7005: org.apache.commons.beanutils.BeanPredicate: Parameter 2 of 
'public BeanPredicate(java.lang.String, 
org.apache.commons.collections.Predicate)' has changed its type to 
org.apache.commons.collections4.Predicate
[ERROR] 7006: org.apache.commons.beanutils.BeanPredicate: Return type of method 
'public org.apache.commons.collections.Predicate getPredicate()' has been 
changed to org.apache.commons.collections4.Predicate
[ERROR] 7005: org.apache.commons.beanutils.BeanPredicate: Parameter 1 of 
'public void setPredicate(org.apache.commons.collections.Predicate)' has 
changed its type to org.apache.commons.collections4.Predicate
[ERROR] 4001: org.apache.commons.beanutils.BeanPropertyValueChangeClosure: 
Removed org.apache.commons.collections.Closure from the set of implemented 
interfaces
[ERROR] 4001: org.apache.commons.beanutils.BeanPropertyValueEqualsPredicate: 
Removed org.apache.commons.collections.Predicate from the set of implemented 
interfaces
[ERROR] 4001: org.apache.commons.beanutils.BeanToPropertyValueTransformer: 
Removed org.apache.commons.collections.Transformer from the set of implemented 
interfaces
[ERROR] 7002: org.apache.commons.beanutils.BeanUtils: Method 'public boolean 
getCacheFast(java.util.Map)' has been removed
[ERROR] 7002: org.apache.commons.beanutils.BeanUtils: Method 'public void 
setCacheFast(java.util.Map, boolean)' has been removed
[ERROR] 7006: org.apache.commons.beanutils.PropertyUtils: Return type of method 
'public org.apache.commons.collections.FastHashMap 
getMappedPropertyDescriptors(java.lang.Class)' has been changed to java.util.Map
[ERROR] 7009: org.apache.commons.beanutils.PropertyUtils: Accessibility of 
method 'public org.apache.commons.collections.FastHashMap 
getMappedPropertyDescriptors(java.lang.Class)' has been decreased from public 
to package
[ERROR] 7006: org.apache.commons.beanutils.PropertyUtils: Return type of method 
'public org.apache.commons.collections.FastHashMap 
getMappedPropertyDescriptors(java.lang.Object)' has been changed to 
java.util.Map
[ERROR] 7006: org.apache.commons.beanutils.PropertyUtilsBean: Return type of 
method 'public org.apache.commons.collections.FastHashMap 
getMappedPropertyDescriptors(java.lang.Class)' has been changed to java.util.Map
[ERROR] 7009: org.apache.commons.beanutils.PropertyUtilsBean: Accessibility of 
method 'public org.apache.commons.collections.FastHashMap 
getMappedPropertyDescriptors(java.lang.Class)' has been decreased from public 
to package
[ERROR] 7006: org.apache.commons.beanutils.PropertyUtilsBean: Return type of 
method 'public org.apache.commons.collections.FastHashMap 
getMappedPropertyDescriptors(java.lang.Object)' has been changed to 
java.util.Map
[ERROR] 7009: org.apache.commons.beanutils.PropertyUtilsBean: Accessibility of 
method 'public org.apache.commons.collections.FastHashMap 
getMappedPropertyDescriptors(java.lang.Object)' has been decreased from public 
to package
[ERROR] 7006: org.apache.commons.beanutils.locale.LocaleConvertUtils: Return 
type of method 'protected org.apache.commons.collections.FastHashMap 
create(java.util.Locale)' has been changed to java.util.Map
[ERROR] 7006: org.apache.commons.beanutils.locale.LocaleConvertUtils: Return 
type of method 'protected org.apache.commons.collections.FastHashMap 
lookup(java.util.Locale)' has been changed to java.util.Map
[ERROR] 7006: org.apache.commons.beanutils.locale.LocaleConvertUtilsBean: 
Return type of method 'protected org.apache.commons.collections.FastHashMap 
create(java.util.Locale)' has been changed to java.util.Map
[ERROR] 7006: org.apache.commons.beanutils.locale.LocaleConvertUtilsBean: 
Return type of method 'protected org.apache.commons.collections.FastHashMap 
lookup(java.util.Locale)' has been changed to java.util.Map
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12.972 s
[INFO] Finished at: 2017-12-27T11:40:38-07:00
[INFO] Final Memory: 25M/242M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:clirr-maven-plugin:2.8:check 
(default-cli) on project commons-beanutils: There were 24 errors. -> [Help 1]
{noformat}

For this issue to be truly resoved, we need to change the packaging from 
{{org.apache.commons.beanutils}} to {{org.apache.commons.beanutils2}}.

> Upgrade commons-collections to 4
> --------------------------------
>
>                 Key: BEANUTILS-500
>                 URL: https://issues.apache.org/jira/browse/BEANUTILS-500
>             Project: Commons BeanUtils
>          Issue Type: Improvement
>          Components: Bean / Property Utils
>    Affects Versions: 2.0
>            Reporter: Dave Brosius
>            Priority: Minor
>             Fix For: 2.0
>
>         Attachments: BEANUTILS-500.2.txt, BEANUTILS-500.3.txt, 
> BEANUTILS-500.txt
>
>
> uptake commons-collections4.
> The main difference is the removal of 'FastHashMap', and replacement with 
> ConcurrentHashMap.
> There are a few breaking changes for deprecated methods that return a 
> FastHashMap, that are exposed.
> I made them package private, and undeprecated them, thus 2.0



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to