FreeMarker staticUtil breaks after upgrade from 7.2.0 GA1 to 7.2.1 GA2FreeMarker staticUtil breaks after upgrade from 7.2.0 GA1 to 7.2.1 GA2https://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1182317502024-03-28T23:00:04Z2024-03-28T23:00:04ZRE: FreeMarker staticUtil breaks after upgrade from 7.2.0 GA1 to 7.2.1 GA2Alberto Chaparrohttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1182882012020-01-16T17:36:50Z2020-01-16T17:36:50ZGreat!<br />Thanks Alessandro for documenting it :-)Alberto Chaparro2020-01-16T17:36:50ZRE: FreeMarker staticUtil breaks after upgrade from 7.2.0 GA1 to 7.2.1 GA2Alessandro Candinihttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1182852732020-01-16T08:31:53Z2020-01-16T08:31:53Z<html><head></head><body>Hi Alberto, I've solved in this way:<br><pre><code>&lt;#assign STATUS_APPROVED = staticFieldGetter.getFieldValue("com.liferay.portal.kernel.workflow.WorkflowConstants", "STATUS_APPROVED")/&gt;
</code></pre></body></html>Alessandro Candini2020-01-16T08:31:53ZRE: FreeMarker staticUtil breaks after upgrade from 7.2.0 GA1 to 7.2.1 GA2Alberto Chaparrohttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1182430682020-01-09T22:51:18Z2020-01-09T22:51:18ZHi Alessandro,<br />Can you try with other classes in portal-kernel? it seems that the template can't see this jar somehow.Alberto Chaparro2020-01-09T22:51:18ZFreeMarker staticUtil breaks after upgrade from 7.2.0 GA1 to 7.2.1 GA2Alessandro Candinihttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1182317492020-01-09T11:03:39Z2020-01-09T11:03:39Z<html><head></head><body>Hi everyone!<br>On Liferay 7.2.0 CE GA1, inside a Web Content Template we had the following import of static constants:<br><pre><code>WorkflowConstants = staticUtil["com.liferay.portal.kernel.workflow.WorkflowConstants"]
</code></pre>After an upgrade to Liferay 7.2.1 CE GA2, this snippets does not work anymore and the error reported is the following:<br><pre><code>java.lang.ClassNotFoundException: com.liferay.portal.kernel.workflow.WorkflowConstants cannot be found by com.liferay.portal.template.freemarker_5.0.16
</code></pre>With other imports, for example <pre><code> WindowState = staticUtil["javax.portlet.WindowState"]</c