summaryrefslogtreecommitdiff
path: root/java/java.go
diff options
context:
space:
mode:
author Spandan Das <spandandas@google.com> 2025-01-30 19:52:17 +0000
committer Spandan Das <spandandas@google.com> 2025-02-04 00:40:57 +0000
commita0dd53aa6d071542e0913867a242c5cb12ebc6ed (patch)
tree01283e6bbf9f31d6a0035930e758e3c085631b74 /java/java.go
parentc159fddcbb8ff8b6a5e3171118394954c7d7cbbf (diff)
Potential fix for b/388923522
WindowManager sources are compiled into `services.core.unboosted` via a `java_genrule`. This intermediate genrule transforms source .java files containing ProtoLog.x syntantic sugar to another .java file. Such transformation causes WindowManager srcs (e.g. `frameworks/base/services/core/java/com/android/server/wm/AppWarnings.java` to be missing from kythe xrefs. The .kzips for this file is generated in the context of `services.core.unboosted` where its path becomes out/soong/.intemediates/ (after protolog transformation). This CL uses kythe's vnames to map the path of WM generated code back to the source. The drawback of this hack is that the LineNumbers in the source code vs the generated code might be different, but that should be an overlall improvement than not having any xrefs. Test: XREF_CORPUS=blah m out/soong/.intermediates/frameworks/base/services/core/services.core.unboosted/android_common/services.core.unboosted38.kzip Test: Ran indexer locally using go/kythe-local-run Test: verified that `frameworks/base/services/core/java/com/android/server/wm/AppWarnings.java` appears and not out/soong/.intemediates/... Bug: 388923522 Change-Id: Ic7c011237d5c1be67d914eaaf10d056d9c91f84f
Diffstat (limited to 'java/java.go')
0 files changed, 0 insertions, 0 deletions