twitter4j_4.0.3 Incompatible with Processing 2.2.2. Why...

_vk_vk
edited June 2015 in Library Questions

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);
        }
    }

source: https://github.com/yusuke/twitter4j/blob/master/twitter4j-core/src/main/java/twitter4j/TwitterObjectFactory.java

Any ideas why?

thanks

Sign In or Register to comment.