You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The factory function generated under the same package name and the same name as the Builder so it is ambiguous for the compiler. In my case the compiler try to use the private constructor of the original java generated code.
There should be an option for package name prefix or factory function name postfix. For ex. DataClassDtoFactory(...)
By the way: This plugin saves my live! 😄 The original generator should be like this.
The text was updated successfully, but these errors were encountered:
Ah! I found the problem. I use option java_multiple_files = true; in proto file. When I turn it off, the problem goes. This is not really necessary for me so I leave it off, but you should mention this in docs, or handle by wrapping the factories in this case (in a *Factory outer class), so I could use DataFactory.DataClassDto for ex.
The factory function generated under the same package name and the same name as the Builder so it is ambiguous for the compiler. In my case the compiler try to use the private constructor of the original java generated code.
There should be an option for package name prefix or factory function name postfix. For ex.
DataClassDtoFactory(...)
By the way: This plugin saves my live! 😄 The original generator should be like this.
The text was updated successfully, but these errors were encountered: