Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
5.1 EE SP3 (5.1.6), 5.2 EE SP1 (5.2.5)
-
All
Description
A classCastException may occur when serializing objects to JSON in a plugin (or more specifically, objects not accessible to portal-impl.jar).
To address this issue, com.liferay.util.json.JSONFactoryUtil has been added to util-java.jar. This new class should be used if the class that is serialized is not available to portal-impl.jar. For classes that are available to portal-impl.jar, the existing com.liferay.portal.kernel.json.JSONFactoryUtil can still be used.
Attachments
Issue Links
- is related to
-
LPS-4534 JSONFactoryUtil throws a ClassCastException when serializing objects that are not accessible to portal-impl
- Closed