-
Notifications
You must be signed in to change notification settings - Fork 349
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
org.json jar file is old and lacks some JSON spec methods #1450
Comments
Failed Travis tests. Seems like there is some sort of Java version compatibility problem. |
fwiw, here's a version compiled for java 1.7. Name is 20161008 as this is of the last change to that repo (I suspect this is the same as sammyjava but with switched month and day). Analysis of sammyjava's jar does show compilation for 1.8 |
Ahhh, sorry about that. |
No worries 😊 On 21 Nov 2016 5:08 p.m., "Sam Hokin" notifications@github.com wrote:
|
This is being progressed under #1457. After sorting out various issues with actually getting the right jar in built for the right Java version, it turns out some change in JSON-java [1] is causing a couple of InterMine tests to fail. It's not obvious when this occurred so the next step will be to divide and conquer to find out which JSON-java change is causing this and then work out what to do about it. |
@justinccdev Can you update the JAR in maven's config please |
This can't be done until the test failures on updating the jar have been fixed. |
oh. okay. I'll take a look. Hopefully just reordering? |
Unfortunately not, afair, it was something else caused by some subtle change in the behaviour of JSON-java (aka json-lib). When I last looked, I had come to the point of actually comparing json-lib source code to try and identify the change directly but other priorities took over. If we're really unlucky the change was a local patch by somebody in InterMine which has since been lost. A more fruitful approach may be to simply update the JAR and directly change the InterMine source code to accommodate the different behaviour but this won't be simple either. I suspect it's buried deep within JSON generation. |
It's weird the other tests pass though, right? EDIT: oh i see, the JSON row formatter is ignoring / dropping NULL columns. whoops. |
The included org.json package is quite old and lacks some useful methods in the current JSON spec, for exampe: keySet() and toMap(). I suggest replacing it with a current version, which I can supply, compiled from here: https://github.com/stleary/JSON-java
intermine/intermine/model/main/lib/json20110106.jar
intermine/intermine/webservice/client/main/lib/json20110106.jar
The text was updated successfully, but these errors were encountered: