diff options
| author | 2019-12-07 00:16:24 +0900 | |
|---|---|---|
| committer | 2019-12-07 00:45:02 +0900 | |
| commit | e403e9e8dc0098acb3ae429702a40ccf75a1c8f2 (patch) | |
| tree | d8b5f2416972dab69db3a357b87277b4b2349690 /java/java.go | |
| parent | f6739a65dd1ceeb050249070e9407890f713e30c (diff) | |
Link type checking for java_library
Link type checking for java_library has not been working unintentionally.
So turn on link type checking for these types.
And also add tests for link type checking.
Bug: 145799020
Test: cherry-pick aosp/1182522 and check if build fails
Test: m nothing and there is no error(soong unittest)
Change-Id: Ifc347f657885de1028ac0076ddd103c0387b597a
Diffstat (limited to 'java/java.go')
| -rw-r--r-- | java/java.go | 3 | 
1 files changed, 1 insertions, 2 deletions
diff --git a/java/java.go b/java/java.go index 5cd074ab1..b6094f913 100644 --- a/java/java.go +++ b/java/java.go @@ -792,8 +792,7 @@ func (j *Module) collectDeps(ctx android.ModuleContext) deps {  			return  		}  		switch module.(type) { -		case *Library: -		case *AndroidLibrary: +		case *Library, *AndroidLibrary:  			if to, ok := module.(linkTypeContext); ok {  				switch tag {  				case bootClasspathTag, libTag, staticLibTag:  |