Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-4626

Warning during build for JDK9+ projects due to com.google.protobuf.UnsafeUtil

    XMLWordPrintableJSON

Details

    Description

      During project builds using calcite-core, the following warning shows up:

      WARNING: An illegal reflective access operation has occurred
      WARNING: Illegal reflective access by com.google.protobuf.UnsafeUtil (file:/Users/amannmalik/.gradle/caches/modules-2/files-2.1/com.google.protobuf/protobuf-java/3.6.1/d06d46ecfd92ec6d0f3b423b4cd81cb38d8b924/protobuf-java-3.6.1.jar) to field java.nio.Buffer.address
      WARNING: Please consider reporting this to the maintainers of com.google.protobuf.UnsafeUtil
      WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
      WARNING: All illegal access operations will be denied in a future release
      

      This is due to the Avatica dependency on a version of protobuf-java that suffers from the already documented and resolved issue: https://github.com/protocolbuffers/protobuf/issues/3781

      Simply upgrading the dependency version to the latest (3.17.1) passes the Avatica build and results in removal of the warning.

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              amannm Amann Malik
              Votes:
              1 Vote for this issue
              Watchers:
              3 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 - 20m
                  20m