You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Volodymyr Vysotskyi (JIRA)" <ji...@apache.org> on 2019/06/13 14:48:00 UTC

[jira] [Created] (DRILL-7294) Prevent generating java beans using protostuff to avoid overriding classes with the same simple name declared as nested in the proto files

Volodymyr Vysotskyi created DRILL-7294:
------------------------------------------

             Summary: Prevent generating java beans using protostuff to avoid overriding classes with the same simple name declared as nested in the proto files
                 Key: DRILL-7294
                 URL: https://issues.apache.org/jira/browse/DRILL-7294
             Project: Apache Drill
          Issue Type: Bug
    Affects Versions: 1.16.0
            Reporter: Volodymyr Vysotskyi
            Assignee: Volodymyr Vysotskyi
             Fix For: 1.17.0


Currently, {{protostuff-maven-plugin}} generates java-bean classes from proto files. But these classes already generated by protobuf, the single difference is that they are placed in a different package, and preserved the nesting of the classes as they are declared in the proto files.

protostuff creates new files for nested classes, and it causes problems for the case when several nested classes have the same name - they override each other, for example here is Travis failure caused by this problem: https://travis-ci.org/apache/drill/jobs/545013395



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)