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

Adjust postgresql.util.StreamWrapper for compatibility with newer Java versions #47

Merged
merged 1 commit into from
May 23, 2023

Conversation

amotl
Copy link
Member

@amotl amotl commented May 22, 2023

As suggested by @BaurzhanSakhariev at #44 (comment). Thanks!

The patch resolves this error.

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project postgresql: Compilation failure
[ERROR] /Users/amo/dev/crate/drivers/pgjdbc/pgjdbc/target/gen-src/org/postgresql/util/StreamWrapper.java:[120,27] unreported exception java.lang.Throwable; must be caught or declared to be thrown

@amotl amotl changed the title Adjust postgresql.util.StreamWrapper for compatibility with newer Java Adjust postgresql.util.StreamWrapper for compatibility with newer Java versions May 22, 2023
throw e;
} catch (Throwable e) {
throw new RuntimeException("Unexpected exception from finalize", e);
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A bit strange solution for this topic, but I saw that it's coming from the upstream. Can we also add pgjdbc@3ff4197?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your attention. I've added the @SuppressWarnings({"deprecation", "removal"}) annotation.

@amotl amotl force-pushed the amo/update-changelog branch 2 times, most recently from d511abf to 044ff35 Compare May 23, 2023 09:47
@amotl amotl requested a review from seut May 23, 2023 09:53
@amotl amotl mentioned this pull request May 23, 2023
Base automatically changed from amo/update-changelog to REL42.2.5_crate May 23, 2023 10:15
@amotl amotl merged commit 262b92a into REL42.2.5_crate May 23, 2023
@amotl amotl deleted the amo/update-java branch May 23, 2023 10:18
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.

3 participants