Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.11.3
-
Any use of the C# generator with enums that contain reserved keywords
Description
The C# CodeGen.cs incorrectly chooses to throw when it encounters a C# reserved keyword as an enum member.
In C#, any identifier that clashes with a reserved keyword can be escaped with a leading '@', e.g. this works:
enum Foo
{ @string = 1, @int = 2, @float = 3 }This is a pretty serious issue with any Avro schema that describes programming-related structures.
Attachments
Issue Links
- links to