Closed kwin closed 5 years ago
Thanks, but I would suggest using try with resources and remove the close method on the OSGiUtil.
This would mean to upgrade to Java8, I'd like to keep Java7 compatibility for now.
try-with-resources has been introduced with Java7.
Oh, true. Changed it.
Fixed in 1.0.0
All services being retrieved through https://github.com/Netcentric/vault-upgrade-hook/blob/master/vault-upgrade-hook/src/main/java/biz/netcentric/vlt/upgrade/util/Util.java#L34 are never properly released. Not using
BundleContext.ungetService(ServiceReference)
leads to classloader leaks.