Kamil Baran created AVRO-3117:
---------------------------------
Summary: Variable named 'conversions'
Key: AVRO-3117
URL: https://issues.apache.org/jira/browse/AVRO-3117
Project: Apache Avro
Issue Type: Bug
Affects Versions: 1.8.2
Reporter: Kamil Baran
I came across an issue while upgrading from Avro 1.7.7 to Avro 1.8.2.
I was trying to compile our schemas using
org.apache.avro.tool.SpecificCompilerTool unfortunately, the compilation fails.
In a nutshell, we already used the field "conversions" in our schemas and a
field with the same name has been added to store Conversion objects. As a
result, we end up with two colliding fields.
{code:java}
//
@Deprecated public long conversions;
//
private static final org.apache.avro.Conversion<?>[] conversions =
new org.apache.avro.Conversion<?>[] {
null,
null,
null,
null,
null,
null,
null,
null,
null,
DECIMAL_CONVERSION,
null,
DECIMAL_CONVERSION,
null,
null,
DECIMAL_CONVERSION,
DECIMAL_CONVERSION,
DECIMAL_CONVERSION,
null,
null,
null,
null
};
{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)