Skip to content
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

Make Java runfiles library compilable with JDK 8 #16851

Closed
wants to merge 1 commit into from

Conversation

fmeum
Copy link
Collaborator

@fmeum fmeum commented Nov 25, 2022

The FileReader(String,Charset) constructor is not available in Java 8.

Fixes #16849
Work towards #16124

The `FileReader(String,Charset)` constructor is not available in Java 8.
@fmeum
Copy link
Collaborator Author

fmeum commented Nov 25, 2022

@Wyverald Could you review?

I wonder whether there is any way to add test coverage for this. As far as I can tell, none of the CI images ship with Java 8 anymore.

@sgowroji sgowroji added team-Rules-Java Issues for Java rules awaiting-review PR is awaiting review from an assigned reviewer labels Nov 28, 2022
@meteorcloudy
Copy link
Member

As far as I can tell, none of the CI images ship with Java 8 anymore.

Indeed, I think maintaining Java 8 compatibility is a best effort now.

@meteorcloudy meteorcloudy added awaiting-PR-merge PR has been approved by a reviewer and is ready to be merge internally and removed awaiting-review PR is awaiting review from an assigned reviewer labels Nov 28, 2022
@sgowroji sgowroji removed the awaiting-PR-merge PR has been approved by a reviewer and is ready to be merge internally label Nov 28, 2022
fmeum added a commit to fmeum/bazel that referenced this pull request Nov 28, 2022
The `FileReader(String,Charset)` constructor is not available in Java 8.

Fixes bazelbuild#16849
Work towards bazelbuild#16124

Closes bazelbuild#16851.

PiperOrigin-RevId: 491310720
Change-Id: I26f7bce346038d10285b0a1ee7b29216ba151010
@fmeum fmeum deleted the 16849-java-runfiles-java8 branch November 28, 2022 12:56
meteorcloudy pushed a commit that referenced this pull request Nov 28, 2022
The `FileReader(String,Charset)` constructor is not available in Java 8.

Fixes #16849
Work towards #16124

Closes #16851.

PiperOrigin-RevId: 491310720
Change-Id: I26f7bce346038d10285b0a1ee7b29216ba151010
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-Rules-Java Issues for Java rules
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Java runfiles library no longer compiles with Java 8
3 participants