Skip to content

Bazel: fallback to default absolute path logic #620

Merged
keynmol merged 2 commits intomainfrom
olafurpg/java-file-object
Jul 25, 2023
Merged

Bazel: fallback to default absolute path logic #620
keynmol merged 2 commits intomainfrom
olafurpg/java-file-object

Conversation

@olafurpg
Copy link
Contributor

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.java

Test plan

Green CI.

@olafurpg olafurpg requested a review from keynmol July 25, 2023 13:29
@olafurpg olafurpg enabled auto-merge July 25, 2023 13:30
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.java
@olafurpg olafurpg force-pushed the olafurpg/java-file-object branch from 22375e5 to 92b6e9b Compare July 25, 2023 13:31
@keynmol keynmol disabled auto-merge July 25, 2023 13:49
@keynmol keynmol enabled auto-merge (squash) July 25, 2023 13:53
@keynmol keynmol merged commit d4bbe72 into main Jul 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants