Commit d4bbe72
authored
Bazel: fallback to default absolute path logic (#620)
* Remove unnecessary throw for unexpected exception
* Bazel: fallback to default absolute path logic
Previously, we failed compilation when failing to infer the absolute
path of a file that was being compiled by Bazel. This commit changes the
behavior to fallback to the default behavior, which uses the standard
`JavaFileObject.toUri()` API. The goal of this change is to fix an issue
that happened when using errorprone together with semanticdb-javac, and
errorprone triggers compilation with custom compilation unit here
https://sourcegraph.com/github.com/google/error-prone@77ba705df2c213eddd5652622336f4a8fef3c387/-/blob/check_api/src/main/java/com/google/errorprone/fixes/SuggestedFixes.java1 parent 56529d6 commit d4bbe72
File tree
1 file changed
+3
-3
lines changed- semanticdb-javac/src/main/java/com/sourcegraph/semanticdb_javac
1 file changed
+3
-3
lines changedLines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
150 | | - | |
151 | | - | |
| 149 | + | |
152 | 150 | | |
| 151 | + | |
| 152 | + | |
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| |||
0 commit comments