You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current method (property file in the JAR) can cause problem in classpath-sensitive environments like OSGi. com.rabbitmq.client.Connection.class.getPackage().getImplementationVersion() should do the trick.
The code tries to read the version from a property file
(with a unique name) and falls back to Package#getImplementationVersion
in case of error. If Package#getImplementationVersion fails too,
a default hardcoded value is returned. Warns are logged for every failure.
This should make the retrieval more reliable in different contexts
(e.g. uber-JARs, OSGi).
References #334
The current method (property file in the JAR) can cause problem in classpath-sensitive environments like OSGi.
com.rabbitmq.client.Connection.class.getPackage().getImplementationVersion()
should do the trick.Mailing list thread: https://groups.google.com/d/msg/rabbitmq-users/f2MdvSeOXLw/5uZT-fcxBQAJ
The text was updated successfully, but these errors were encountered: