Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-5274

Thrift 0.13.0 does not work with JDK8

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.14.0
    • Java - Library
    • None

    Description

      Thrift 0.13.0 does not work with JDK8, as it is compiled with JDK11. Even though the source version is JDK8, incorrect byte code is generated for various ByteBuffer methods, e.g.:

      Exception in thread "TAsyncClientManager#SelectorThread 22" java.lang.NoSuchMethodError: java.nio.ByteBuffer.rewind()Ljava/nio/ByteBuffer;

      The fix is suggested in this blog post: https://www.morling.dev/blog/bytebuffer-and-the-dreaded-nosuchmethoderror/

      We can add the release flag for 1.8 (-release=8).

      Attachments

        Issue Links

          Activity

            People

              ctubbsii Christopher Tubbs
              coheigea Colm O hEigeartaigh
              Votes:
              1 Vote for this issue
              Watchers:
              4 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 - 3h 20m
                  3h 20m