Fokko Driesprong created THRIFT-4766:
----------------------------------------
Summary: JDK9+ fails on missing annotations
Key: THRIFT-4766
URL: https://issues.apache.org/jira/browse/THRIFT-4766
Project: Thrift
Issue Type: Improvement
Reporter: Fokko Driesprong
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.
```
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)