You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by Robert Chu <ro...@wibidata.com> on 2014/03/05 03:03:56 UTC
Transient position in Schema.Field
Hi everyone,
I was wondering why the position field of the Schema.Field class is marked
as transient given that the Schema class itself isn't even marked as
serializable. The code that I am referring to can be found:
https://github.com/apache/avro/blob/trunk/lang/java/avro/src/main/java/org/apache/avro/Schema.java#L358
.
If there isn't a reason, can we change this to not be transient? I can make
the one line patch.
Robert
Re: Transient position in Schema.Field
Posted by Christophe Taton <ch...@gmail.com>.
Hi,
Per git blame, the change that introduced the transient keyword is
https://github.com/apache/avro/commit/53aca6d7e502e83f1c38e8926ae671b026bd3872(
https://issues.apache.org/jira/browse/AVRO-601).
I cannot find any explanation as to why transient is required here from the
code or the issue discussion.
>From as far as I can see, I believe transient could be removed.
C.
On Tue, Mar 4, 2014 at 6:03 PM, Robert Chu <ro...@wibidata.com> wrote:
> Hi everyone,
>
> I was wondering why the position field of the Schema.Field class is marked
> as transient given that the Schema class itself isn't even marked as
> serializable. The code that I am referring to can be found:
>
> https://github.com/apache/avro/blob/trunk/lang/java/avro/src/main/java/org/apache/avro/Schema.java#L358
> .
>
> If there isn't a reason, can we change this to not be transient? I can make
> the one line patch.
>
> Robert
>