[
https://issues.apache.org/jira/browse/AVRO-2571?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16967519#comment-16967519
]
Ryan Skraba commented on AVRO-2571:
-----------------------------------
This sounds like a valid bug to me.
The SpecificCompiler (java) even says in the javadoc that it'll mangle java
keywords appropriately (although mangling occurs by appending {{public$}} as
opposed to prefixing {{_public}}. I don't see any reason to exclude the
namespace when the specific compiler knows how to correctly mangle names and
fields.
> avro-maven-plugin not escaping "public" keyword in namespace
> ------------------------------------------------------------
>
> Key: AVRO-2571
> URL: https://issues.apache.org/jira/browse/AVRO-2571
> Project: Apache Avro
> Issue Type: Bug
> Components: java
> Affects Versions: 1.9.0
> Reporter: Daniel Shuy
> Priority: Major
>
> If the avro schema namespace contains the word *public*, the generated Java
> source file will fail to compile, because *public* is a reserved keyword in
> Java.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)