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

Apply a workaround for a JDK bug unconditionally. #1587

Closed
wants to merge 0 commits into from

Conversation

copybara-service[bot]
Copy link
Contributor

@copybara-service copybara-service bot commented Sep 7, 2023

Apply a workaround for a JDK bug unconditionally.

We now always read template resources directly from the jar file containing them, rather than initially trying to use getResourceAsStream. That can trigger JDK-6947916 and our existing fallback-to-workaround logic was ineffective with recent versions of EscapeVelocity. Even though the JDK bug was supposedly fixed in JDK 9 and later JDK 8 updates, people are still reporting issues with AutoValue that look exactly like it.

Reading directly from the jar file should not be too inefficient, and each read should only happen once per compilation, no matter how many @AutoValue classes there are in the compilation.

Fixes #1572.

RELNOTES=A workaround for a JDK bug with reading jar resources has been extended so it always applies, rather than just as a fallback. See #1572.

@copybara-service copybara-service bot force-pushed the test_main_563251940 branch 5 times, most recently from 8155150 to a7cdf37 Compare September 8, 2023 18:54
@copybara-service copybara-service bot closed this Sep 8, 2023
@copybara-service copybara-service bot deleted the test_main_563251940 branch September 8, 2023 18:58
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.

Intermittent Stream closed exception after upgrading to 1.10.2
0 participants