We are about to switch to a new forum software. Until then we have removed the registration on this forum.
The static method createStatus()
in the class TwitterObjectFactory
- that have replaced the deprecated DataObjectFactory
- in P5 2.2.1 throws a Processing exception:
NoSuchMethodError: You may be using a library that's incompatible with this version of Processing.
Using DataObjectFactory
works though.
or
Using P5 30a4 also works
I tried to look at the sources to try to figure out why, but couldn't spot...
method's code:
/**
* Constructs a Status object from rawJSON string.
*
* @param rawJSON raw JSON form as String
* @return Status
* @throws TwitterException when provided string is not a valid JSON string.
* @since Twitter4J 2.1.7
*/
public static Status createStatus(String rawJSON) throws TwitterException {
try {
return new StatusJSONImpl(new JSONObject(rawJSON));
} catch (JSONException e) {
throw new TwitterException(e);
}
}
Any ideas why?
thanks