-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check for problems with ByteBuffer covariant return types when building with JDK 9+ #113
Labels
Comments
Probably at least one affected line:
|
I can confirm starting with jimfs 1.2, RegularFile no longer works on JDK8 for us because it references the JDK9+ signature. |
copybara-service bot
pushed a commit
that referenced
this issue
May 30, 2023
- Set `-source 8 -target 8`. We already have a depencdency on `guava-android`, which began requiring Java 8 a while back, so we might as well unlock the ability to use Java 8 language features ourselves. (I also found I had to set `-source 8` in `maven-javadoc-plugin` to prevent it from trying to pass a `--module-path`, which leads to problems with our usages of `@NullableDecl`, which isn't in a module. That's probably unrelated: We probably just haven't run Javadoc since some `maven-javadoc-plugin` upgrade.) Work toward #240, and fixes #229 - Don't refer to Java 9+ `ByteBuffer` methods, and set up Error Prone enforcement of future such mistakes. Compare google/guava#6334. Fixes #113 RELNOTES=Officially dropped support for Java 7, and restored accidentally dropped support for Java 8. PiperOrigin-RevId: 535378262
Closed
This is fixed in 1.3.0, now on Maven Central. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
jimfs uses
ByteBuffer
, so building it with JDK 9+ may make it fail at runtime under Java 8 or lower, similar to:alts
release built with JDK 9+ wouldn't work under Java 7 or 8 grpc/grpc-java#7348But I haven't checked any more detail than that.
The text was updated successfully, but these errors were encountered: