[
https://issues.apache.org/jira/browse/HADOOP-2738?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12564376#action_12564376
]
Hudson commented on HADOOP-2738:
--------------------------------
Integrated in Hadoop-trunk #385 (See
[http://hudson.zones.apache.org/hudson/job/Hadoop-trunk/385/])
> Text is not subclassable because set(Text) and compareTo(Object) access the
> other instance's private members directly
> ---------------------------------------------------------------------------------------------------------------------
>
> Key: HADOOP-2738
> URL: https://issues.apache.org/jira/browse/HADOOP-2738
> Project: Hadoop Core
> Issue Type: Bug
> Components: io
> Affects Versions: 0.16.0
> Reporter: Jim Kellerman
> Assignee: Jim Kellerman
> Priority: Minor
> Fix For: 0.17.0
>
> Attachments: patch.txt
>
>
> Text objects should not access other Text objects private members directly.
> Both set(Text) and compareTo(Object) do.
> Because these two methods access private members of the other object, Text is
> not subclassable. Either these two methods should be modified to use the
> accessors that are already available, or Text should be declared as a final
> class, because as it exists today it is not subclassable.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.