beyond-seunghyun opened a new pull request, #2048:
URL: https://github.com/apache/avro/pull/2048

   ## What is the purpose of the change
   
   This pull request fixes AVRO-3698.
   
   When makes Java Class, 
[SpecificCompiler](https://github.com/apache/avro/blob/master/lang/java/compiler/src/main/java/org/apache/avro/compiler/specific/SpecificCompiler.java#L1129)
 adds "$" after reserved words like public, new, etc...
   
   For example, if the namespace of a schema is db.public.table, then the 
package name of the generated Java Class, made by SpecificCompiler, is 
db.public$.table. (Because public is a reserved word in java)
   
   But when deserializes an Avro Record to a SpecificRecord, 
SpecificData.getClassName returns db.pulic.table.Name.
   
   So, it can't find a class by name from SpecificData.getClassName.
   
   
   
   ## Verifying this change
   
   This change is a trivial rework / code cleanup without any test coverage.
   
   
   
   ## Documentation
   
   - Does this pull request introduce a new feature? no
   - 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@avro.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to