sarutak commented on PR #2430:
URL: https://github.com/apache/avro/pull/2430#issuecomment-1671571090

   Hmm, the Java binding seems to generate namespaces which contain `$` for 
inner classes/enums.
   ```
   [INFO] Running org.apache.avro.protobuf.TestProtobuf
   Error:  Tests run: 7, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 
0.372 s <<< FAILURE! - in org.apache.avro.protobuf.TestProtobuf
   Error:  org.apache.avro.protobuf.TestProtobuf.nestedEnum  Time elapsed: 
0.018 s  <<< ERROR!
   java.lang.RuntimeException: org.apache.avro.SchemaParseException: Illegal 
character in: Test$M
        at 
org.apache.avro.protobuf.ProtobufData.getSchema(ProtobufData.java:187)
        at 
org.apache.avro.protobuf.TestProtobuf.nestedEnum(TestProtobuf.java:115)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at java.util.ArrayList.forEach(ArrayList.java:1259)
        at java.util.ArrayList.forEach(ArrayList.java:1259)
   Caused by: org.apache.avro.SchemaParseException: Illegal character in: Test$M
        at org.apache.avro.Schema.validateName(Schema.java:1641)
        at org.apache.avro.Schema.validateSpace(Schema.java:1652)
        at org.apache.avro.Schema.access$700(Schema.java:96)
        at org.apache.avro.Schema$Name.<init>(Schema.java:720)
        at org.apache.avro.Schema.createEnum(Schema.java:233)
        at 
org.apache.avro.protobuf.ProtobufData.getSchema(ProtobufData.java:322)
        at 
org.apache.avro.protobuf.ProtobufData.getSchema(ProtobufData.java:183)
   ```


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to