[
https://issues.apache.org/jira/browse/AVRO-2571?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16939195#comment-16939195
]
Zezeng Wang commented on AVRO-2571:
-----------------------------------
Public is a modifier and cannot be used as a package name.
Java keywords have special meaning for java compilers. They are used to
represent a data type, or to represent the structure of a program. Keywords
cannot be used as variable names, method names, class names, or package names.
I think avro should not want to break the java syntax specification, maybe you
can change the name.
> 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)