Zoltan Farkas created AVRO-1707: ----------------------------------- Summary: Java serialization readers/writers in generated Jaca classes Key: AVRO-1707 URL: https://issues.apache.org/jira/browse/AVRO-1707 Project: Avro Issue Type: Improvement Reporter: Zoltan Farkas
the following static instances are declared in the generated classes: private static final org.apache.avro.io.DatumWriter WRITER$ = new org.apache.avro.specific.SpecificDatumWriter(SCHEMA$); private static final org.apache.avro.io.DatumReader READER$ = new org.apache.avro.specific.SpecificDatumReader(SCHEMA$); First, I am not sure these Readers and Writers are thread safe, second they hold on to a reference to the "Creator Thread": "private final Thread creator;" which might inhibit GC-ing thread locals... -- This message was sent by Atlassian JIRA (v6.3.4#6332)