hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Kellerman (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HADOOP-2738) Text is not subclassable because set(Text) and compareTo(Object) access the other instance's private members directly
Date Wed, 30 Jan 2008 21:53:34 GMT

     [ https://issues.apache.org/jira/browse/HADOOP-2738?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jim Kellerman updated HADOOP-2738:
----------------------------------

    Resolution: Fixed
        Status: Resolved  (was: Patch Available)

Committed.

> 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.


Mime
View raw message