Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/johnnymorganz/bazel-java-header-compilation-bug
https://github.com/johnnymorganz/bazel-java-header-compilation-bug
Last synced: 29 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/johnnymorganz/bazel-java-header-compilation-bug
- Owner: JohnnyMorganz
- License: mit
- Created: 2024-02-27T14:21:18.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-02-27T14:31:44.000Z (10 months ago)
- Last Synced: 2024-11-24T20:07:42.307Z (about 1 month ago)
- Language: Java
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bazel-java-header-compilation-bug
Compile with bazel (failure):
```sh
bazel build //example/consumer
``````
example/consumer/src/main/java/com/example/consumer/Consumer.java:8: error: getUser() in ActualUser cannot override getUser() in User
public Pair getUser() {
^
return type com.example.library2.Pair is not compatible with com.example.library1.Pair
example/consumer/src/main/java/com/example/consumer/Consumer.java:7: error: method does not override or implement a method from a supertype
@Override
^
Target //example/consumer:consumer failed to build
```Compile with bazel (workaround):
```sh
bazel build //example/consumer --nojava_header_compilation
```