You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2019/03/12 19:06:00 UTC
[jira] [Work logged] (CAMEL-13319) TwitterConverter calls
deprecated getSenderScreenName, throws UnsupportedOperationException
[ https://issues.apache.org/jira/browse/CAMEL-13319?focusedWorklogId=211956&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-211956 ]
ASF GitHub Bot logged work on CAMEL-13319:
------------------------------------------
Author: ASF GitHub Bot
Created on: 12/Mar/19 19:05
Start Date: 12/Mar/19 19:05
Worklog Time Spent: 10m
Work Description: claudio4j commented on pull request #2819: CAMEL-13319 - TwitterConverter calls deprecated getSenderScreenName, throws UnsupportedOperationException
URL: https://github.com/apache/camel/pull/2819
https://issues.apache.org/jira/browse/CAMEL-13319
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Issue Time Tracking
-------------------
Worklog Id: (was: 211956)
Time Spent: 10m
Remaining Estimate: 0h
> TwitterConverter calls deprecated getSenderScreenName, throws UnsupportedOperationException
> -------------------------------------------------------------------------------------------
>
> Key: CAMEL-13319
> URL: https://issues.apache.org/jira/browse/CAMEL-13319
> Project: Camel
> Issue Type: Bug
> Components: camel-twitter
> Reporter: Claudio Miranda
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> TwitterConverter.java at [1] line 49, calls DirectMessage.getSenderScreenName() but it is deprecated [2] and its implementation DirectMessageJSONImpl [3] throws UnsupportedOperationException. To fix, just call getSenderId() instead.
>
> 1. https://github.com/apache/camel/blob/master/components/camel-twitter/src/main/java/org/apache/camel/component/twitter/util/TwitterConverter.java#L49
> 2. https://github.com/Twitter4J/Twitter4J/blob/4.0.7/twitter4j-core/src/main/java/twitter4j/DirectMessage.java#L47
> 3. https://github.com/Twitter4J/Twitter4J/blob/4.0.7/twitter4j-core/src/internal-json/java/twitter4j/DirectMessageJSONImpl.java#L254
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)