I am currently trying to upgrade a jira plugin and have discovered that between JIRA 7.6.0 and Jira 7.6.1 the following two methods have disappeared with alternative or deprecation.
ComponentManager.getContainer()
ComponentManager.getMutablePicoContainer()
Can anyone provide me an alternative of how I can access this containers from the ComponentManager?
ComponentManager has long been deprecated. Please use ComponentAccessor
From Docs
The ComponentManager also has various static accessor methods for non-Pico-managed objects, eg. ComponentManager.getInstance().getProjectManager()
. Plugins developers should no longer use these - please use ComponentAccessor
instead.
Yes, but why would a deprecated APi be removed in a patch release? I thought the API was stable until release versions?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
See https://developer.atlassian.com/server/jira/platform/java-apis/
"For example, a method that is marked as deprecated in JIRA 6.1 will still work in JIRA 6.2, but will be deleted in JIRA 7.0"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Indeed Matt, I just checked the 7.6.1 API and both methods getContainer and getMutablePicoContainer exist in ComponentManager
https://docs.atlassian.com/software/jira/docs/api/7.6.1/com/atlassian/jira/ComponentManager.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Apologies, you're right, the methods are there in 7.6.1 - however, they have subsequently disappeared in 7.7.0 which is what I'm trying to upgrade my plugin to.
I'm with @[deleted] - they shouldn't have disappeared in a point release.
I have no choice but to use the Component Accessor but a little more transparency would have been nice.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.