Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-7294

Prevent generating java beans using protostuff to avoid overriding classes with the same simple name declared as nested in the proto files

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.16.0
    • 1.17.0
    • None

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              volodymyr Vova Vysotskyi
              volodymyr Vova Vysotskyi
              Arina Ielchiieva Arina Ielchiieva
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: