-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OWLReasoner.getReasonerVersion() causes NumberFormatException #49
Comments
(This is particularly relevant for when using ELK in conjunction with InferredOntologyGenerator methods, which rely, needlessly as I must admit, on the implementation of the Reasoner version method)
|
Reproduced with:
Code:
|
Reproduced with
and
Same code as above. |
@matentzn Which version of java do you use? I can reproduce the problem with Java 9, but not with Java 8 (for which the version appears to be 0.0.0.0) |
Actually, even with Java 9 I can only reproduce this from Eclipse (after clean), but not from the command line. Weird... |
That is very strange. I only tested it in Eclipse as well (after maven update and maven clean). Java 1.8.0_161. |
I figured out: I placed the test file into the same package org.semanticweb.elk.owlapi for which the version number is returned (via ElkReasoner.class.getPackage().getImplementationVersion()) |
Using ELK 0.4.3
OWLReasoner r = ...;
System.out.println(r.getReasonerVersion());
Exception in thread "main" java.lang.NumberFormatException: For input string: "2016-01-11T13:41:15Z"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:580)
at java.lang.Integer.parseInt(Integer.java:615)
at org.semanticweb.elk.owlapi.ElkReasoner.getReasonerVersion(ElkReasoner.java:638)
The text was updated successfully, but these errors were encountered: