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

JDK9+ fails on missing annotations

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.13.0
    • Component/s: Java - Library
    • Labels:
      None

      Description

      Currently, the Java9 build fails because it can't find the annotations:
      ```
      make[4]: Entering directory '/thrift/tutorial/cpp'
      make[4]: Nothing to be done for 'install-exec-am'.
      make[4]: Nothing to be done for 'install-data-am'.
      make[4]: Leaving directory '/thrift/tutorial/cpp'
      make[3]: Leaving directory '/thrift/tutorial/cpp'
      make[2]: Leaving directory '/thrift/tutorial/cpp'
      Making install in java
      make[2]: Entering directory '/thrift/tutorial/java'
      /usr/bin/ant compile
      Buildfile: /thrift/tutorial/java/build.xml

      init:
      [mkdir] Created dir: /thrift/tutorial/java/build
      [mkdir] Created dir: /thrift/tutorial/java/build/log

      generate:

      compile:
      [javac] Compiling 7 source files to /thrift/tutorial/java/build
      [javac] /thrift/tutorial/java/gen-java/shared/SharedService.java:10: error: package javax.annotation does not exist
      [javac] @javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.13.0)", date = "2019-01-30")
      [javac] ^
      [javac] /thrift/tutorial/java/gen-java/shared/SharedStruct.java:10: error: package javax.annotation does not exist
      [javac] @javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.13.0)", date = "2019-01-30")
      [javac] ^
      [javac] /thrift/tutorial/java/gen-java/tutorial/Calculator.java:10: error: package javax.annotation does not exist
      [javac] @javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.13.0)", date = "2019-01-30")
      [javac] ^
      [javac] /thrift/tutorial/java/gen-java/tutorial/Work.java:19: error: package javax.annotation does not exist
      [javac] @javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.13.0)", date = "2019-01-30")
      [javac] ^
      [javac] /thrift/tutorial/java/gen-java/tutorial/InvalidOperation.java:13: error: package javax.annotation does not exist
      [javac] @javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.13.0)", date = "2019-01-30")
      [javac] ^
      [javac] /thrift/tutorial/java/gen-java/tutorial/Operation.java:14: error: package javax.annotation does not exist
      [javac] @javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.13.0)", date = "2019-01-30")
      [javac] ^
      [javac] 6 errors

      BUILD FAILED
      /thrift/tutorial/java/build.xml:55: Compile failed; see the compiler error output for details.

      ```

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jking3 James E. King III
                Reporter:
                fokko Fokko Driesprong
              • Votes:
                1 Vote for this issue
                Watchers:
                2 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