It seems the compiler has started adding a top level MODULE which broke assumptions made in here. Also add some tests to verify this and other basic functionality, so that future such breaks may be caught sooner. Test: m framework-annotation-proc-index Test: atest unsupportedappusage-processor-test Bug: 144495446 Change-Id: I43efb25c1600af15809d48aa84498a6800f713b1
35 lines
948 B
Plaintext
35 lines
948 B
Plaintext
|
|
java_library_host {
|
|
name: "unsupportedappusage-annotation-processor-lib",
|
|
srcs: [
|
|
"src/**/*.java",
|
|
],
|
|
static_libs: [
|
|
"guava",
|
|
"unsupportedappusage-annotation"
|
|
],
|
|
openjdk9: {
|
|
javacflags: [
|
|
"--add-modules=jdk.compiler",
|
|
"--add-exports jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED",
|
|
"--add-exports jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED",
|
|
"--add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED",
|
|
"--add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED",
|
|
],
|
|
},
|
|
}
|
|
|
|
java_plugin {
|
|
name: "unsupportedappusage-annotation-processor",
|
|
processor_class: "android.processor.unsupportedappusage.UnsupportedAppUsageProcessor",
|
|
|
|
java_resources: [
|
|
"META-INF/**/*",
|
|
],
|
|
static_libs: [
|
|
"unsupportedappusage-annotation-processor-lib"
|
|
],
|
|
|
|
use_tools_jar: true,
|
|
}
|