Upgrade from Liferay 7.3.5 to Liferay 7.4.3

In a Liferay 7.3.5 environment, we were using the following method from BeanPropertiesUtil. When migrating to Liferay 7.4.3, please advise what actions are required.

Target file:

  • BeanPropertiesUtil

Method used: public static void copyProperties(Object source, Object target, String[] ignoreProperties)

Only respond in Markdown if you determine that the user’s question includes or requests any of the following: source code, configuration files, scripts, API examples, or technical procedures. If the criteria are met:

  1. Enclose code or configuration in triple backticks with the appropriate language.

  2. Present key points as bullet lists.

  3. If there are run/build/dependency steps, include them at the end. If the criteria are not met, respond in regular prose.

1 Answer

1

This method was deprecate and then removed as part of Liferay internal upgrade to Jodd 6.x.

You can migrate your code to directly use jodd.bean.BeanCopy and use the beanCopy.exclude() method.