-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 7.0.0 Alpha 2
-
Fix Version/s: 7.0.0 Alpha 2
-
Labels:None
-
Story Points:1
-
Fix Priority:3
OSGI components should add references to the Services instead of calling the "ServiceUtil" class.
See one example here: https://github.com/brianchandotcom/liferay-portal/pull/30658
To avoid accidnetally creating a circular dependency by converting *ServiceUtil to @Refence inject, we should add an expection rule:
"When the OSGi Component and the *Service Spring bean are within the same module, don't make this change."
A typical scenario is, ShoppingCategoryPermission <--> ShoppingCategoryLocalServiceImpl.