Skip to content

Failed to compile with JDK9+ #4372

@aaron-ai

Description

@aaron-ai

javax.annotation was removed in java9+, which makes the test module could not be compiled in the subsequent version.

Introducing org.apache.tomcat:annotations-api which is under Apache 2 license could solve this issue.

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile (default-compile) on project rocketmq-test: Compilation failure: Compilation failure: 
[ERROR] /Users/aiyangkun/Dev/repo/apache_rocketmq/test/src/main/java/org/apache/rocketmq/test/util/StatUtil.java:[32,24] 找不到符号
[ERROR]   符号:   类 Generated
[ERROR]   位置: 程序包 javax.annotation
[ERROR] /Users/aiyangkun/Dev/repo/apache_rocketmq/test/src/main/java/org/apache/rocketmq/test/util/StatUtil.java:[39,2] 找不到符号
[ERROR]   符号: 类 Generated
[ERROR] -> [Help 1]

Metadata

Metadata

Assignees

No one assigned

    Labels

    dependenciesPull requests that update a dependency file

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions