summaryrefslogtreecommitdiff
path: root/java/java.go
diff options
context:
space:
mode:
authorInseob Kim <inseob@google.com>2020-01-14 15:36:21 +0900
committerInseob Kim <inseob@google.com>2020-01-14 15:58:59 +0900
commitc52395135f146a018c0a6fe70084832e5a5d810f (patch)
treee027a57292fddb6eae73e3f4c32801f4fa1aacb1 /java/java.go
parent17c51a4ff6b996e6ac0f87f67f482c577c9ec2fb (diff)
Allow sdk and core modules to use sysprop_library
This allows javaSdk and javaCore modules to link against Public stub of Platform owned sysprop_library. Bug: 141246285 Test: m nothing Change-Id: Ie11c43cc72ddd0ee13e4163955775c13eb9dbe92
Diffstat (limited to 'java/java.go')
-rw-r--r--java/java.go7
1 files changed, 2 insertions, 5 deletions
diff --git a/java/java.go b/java/java.go
index 5afdc2f6d..4c6a5a5ac 100644
--- a/java/java.go
+++ b/java/java.go
@@ -627,12 +627,9 @@ func (j *Module) deps(ctx android.BottomUpMutatorContext) {
}
linkType, _ := j.getLinkType(ctx.ModuleName())
- if linkType == javaSystem {
+ // only platform modules can use internal props
+ if linkType != javaPlatform {
ret[idx] = stub
- } else if linkType != javaPlatform {
- ctx.PropertyErrorf("sdk_version",
- "can't link against sysprop_library %q from a module using public or core API",
- lib)
}
}