Hello, I faced with an error when working with protoc for Java.

The issue was described on 
https://github.com/protocolbuffers/protobuf/issues/6987, but the issue was 
closed a few months ago.
I've provided some information about reproduction as well as some possible 
workarounds for this error in the original issue.

This problem can easily be solved by using a copy of original proto file, 
but this requires maintaining several identical proto files with the same 
structure
but with the different message names.

Personally, the only backward compatible solution I can see is to add an 
option that allows you to merge class names for nested classes with the 
name of outer class.  

For example, if the outer class has name `Payload`, and the nested class 
has name `Payload`, that flag will generate multiple java classes: 
`Payload` and `Payload.PayloadPayload`,
instead of `Payload` and `Payload.Payload`.

I think I can try to implement this feature.

Regards,
Alexander.

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/protobuf/53cccb0b-81bd-42ee-ad82-9eef542dd845n%40googlegroups.com.

Reply via email to