Browse Source

getVersion() use wrong class for calculating PF4J version (#134)

pull/136/head
Jan Høydahl 8 years ago committed by Decebal Suiu
parent
commit
042fec5a7d
  1. 2
      pf4j/src/main/java/ro/fortsoft/pf4j/AbstractPluginManager.java

2
pf4j/src/main/java/ro/fortsoft/pf4j/AbstractPluginManager.java

@ -612,7 +612,7 @@ public abstract class AbstractPluginManager implements PluginManager {
public Version getVersion() { public Version getVersion() {
String version = null; String version = null;
Package pf4jPackage = getClass().getPackage(); Package pf4jPackage = PluginManager.class.getPackage();
if (pf4jPackage != null) { if (pf4jPackage != null) {
version = pf4jPackage.getImplementationVersion(); version = pf4jPackage.getImplementationVersion();
if (version == null) { if (version == null) {

Loading…
Cancel
Save