[
https://issues.apache.org/jira/browse/AVRO-671?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Doug Cutting updated AVRO-671:
------------------------------
Attachment: AVRO-671.patch
Here's a patch that checks every schema or field name and enum symbol. I
modified the constructors for these rather than the parser, so that schemas
created programmatically are also checked. I added tests to TestSchema instead
of TestSpecificCompiler, since schemas must be created before the compiler
operates on them.
This does not validate namespaces, just names.
> SpecificCompiler generates invalid Java code for invalid identifiers
> --------------------------------------------------------------------
>
> Key: AVRO-671
> URL: https://issues.apache.org/jira/browse/AVRO-671
> Project: Avro
> Issue Type: Bug
> Reporter: Ron Bodkin
> Attachments: AVRO-671-r2.patch, AVRO-671-r3.patch, AVRO-671.patch,
> AVRO-671.patch
>
>
> e.g., if you have a field named "a.b" it will attempt to generate Java code
> with a field named a.b.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.