Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-53235

Registry.getService(Class<?> class) and Registry.getService(String className) leak references

    Details

      Description

      Registry.getService(Class<?> class) and Registry.getService(String className) get new references from OSGi context without giving the user the chance to unget the services, since the methods are hiding the reference used for getting the service.

      We should deprecate these methods and get the services through the references or use a ServiceTracker instead.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  3 years, 40 weeks, 5 days ago

                  Packages

                  Version Package
                  7.0.0 DXP FP30
                  7.0.X EE
                  7.0.4 CE GA5
                  Master