Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-5579

[Java] shade flatbuffer dependency

    XMLWordPrintableJSON

Details

    Description

      Reported in a [github issue|https://github.com/apache/arrow/issues/4489

       

      After some discussion with the Flatbuffers maintainer, it appears that FB generated code is not guaranteed to be compatible with any other version of the runtime library other than the exact same version of the flatc used to compile it.

      This makes depending on flatbuffers in a library (like arrow) quite risky, as if an app depends on any other version of FB, either directly or transitively, it's likely the versions will clash at some point and you'll see undefined behaviour at runtime.

      Shading the dependency looks to me the best way to avoid this.

      Attachments

        Issue Links

          Activity

            People

              tianchen92 Ji Liu
              pravindra Pindikura Ravindra
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 21h
                  21h