After upgrading commons-collection from 3.2.2 to 4.1, I am having issues with comparing collections for BeanPredicate and EqualsPredicate. BeanPredicate is from commons-beanutils jar and EqualsPredicate is from commons-collection.jar.
BeanPredicate namePredicate = new BeanPredicate(propertyName, new EqualPredicate("someString"));
As per Latest commons-collection jar 4.1 ,EqualsPredicate Constructor accepts parameterized type like
public EqualPredicate(T object)
{
this(object, null);
}
not the object which was there in 3.2.2
public EqualPredicate(Object object)
{
this.iValue = object;
}
BeanPredicate has no parameterized type like <T>
for its constructor thats why I am getting compilation problem and not able to build relation ship between these two predicates.I saw latest commons-beanUtils 1.9.3 BeanPredicate jar also there also BeanPredicate constructor is not parameterized.
I tried giving type also but its not working.How to fix this issue any help would be appreciated.