adwsingh opened a new pull request, #1165: URL: https://github.com/apache/logging-log4j2/pull/1165
We use the method [FrameworkUtil.getBundle](https://github.com/apache/logging-log4j2/blob/release-2.x/log4j-core/src/main/java/org/apache/logging/log4j/core/osgi/BundleContextSelector.java#L59) from OSGi, but this method was added [only in OSGi 1.5](https://github.com/osgi/osgi/blob/main/org.osgi.framework/src/org/osgi/framework/FrameworkUtil.java#L224), this causes NoSuchMethodError if older version of OSGi is used. I would suggest to consider OSGi being unavailable for OSGi version < 1.5 or when that method is not available. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
