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


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.

Reply via email to