You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Niels Basjes (JIRA)" <ji...@apache.org> on 2016/03/25 15:11:25 UTC
[jira] [Commented] (AVRO-1814) 1.8 IDL generator broken when
containing a field called 'org'
[ https://issues.apache.org/jira/browse/AVRO-1814?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15211839#comment-15211839 ]
Niels Basjes commented on AVRO-1814:
------------------------------------
I did a quick test and this is bigger than just this one.
It also applies to the TLD of the company actually writing the software.
{code}@namespace("nl.basjes.test")
protocol Hacking {
record Hack {
string nl;
string org;
string com;
}
}{code}
gives similar errors about situations like this:
{code}super(nl.basjes.test.Hack.SCHEMA$);{code}
> 1.8 IDL generator broken when containing a field called 'org'
> -------------------------------------------------------------
>
> Key: AVRO-1814
> URL: https://issues.apache.org/jira/browse/AVRO-1814
> Project: Avro
> Issue Type: Bug
> Components: java
> Affects Versions: 1.8.0
> Reporter: Dustin Spicuzza
>
> The problem is in the generated 'readExternal' and 'writeExternal' functions, because they do something like:
> WRITER$.write(this, org.apache.avro.specific.SpecificData.getEncoder(out));
> When a member variable called 'org' exists, then the compile fails because the compiler thinks that 'org' is a member variable and that 'apache cannot be resolved or is not a field'.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)