java: bypass version check for packages that don't have version specified
@@ -97,6 +97,8 @@ class Spi;
System.exit(1);
}
+ if((mraa.class.getPackage().getSpecificationVersion() != null)
+ && (mraa.getVersion() != null)){
String javaAPIVersion = mraa.class.getPackage().getSpecificationVersion();
String nativeAPIVersion = mraa.getVersion().substring(1);
@@ -126,4 +128,5 @@ class Spi;
System.err.println("Native library version is " + nativeAPIVersion + ". Java library version is " + javaAPIVersion + ".");
}
}
+ }
%}
