You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@htrace.apache.org by "Colin Patrick McCabe (JIRA)" <ji...@apache.org> on 2014/12/15 23:22:14 UTC
[jira] [Commented] (HTRACE-6) Make TraceRunnable implement
Comparable
[ https://issues.apache.org/jira/browse/HTRACE-6?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14247335#comment-14247335 ]
Colin Patrick McCabe commented on HTRACE-6:
-------------------------------------------
I think it would be better for client code which uses {{TraceRunnable}} to simply subclass {{TraceRunnable}}, and have the subclass implement {{Comparable}}. With the current patch, we get a runtime typecast error if the Runnable we're wrapping doesn't implement Comparable, which seems like something we should try to avoid. What do you think?
> Make TraceRunnable implement Comparable
> ---------------------------------------
>
> Key: HTRACE-6
> URL: https://issues.apache.org/jira/browse/HTRACE-6
> Project: HTrace
> Issue Type: Wish
> Reporter: Billie Rinaldi
> Attachments: HTRACE-6.1.patch
>
>
> Accumulo would be able to use htrace's TraceRunnable if it implemented Comparable<TraceRunnable>.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)