Skip to content

RubyDigest.java: avoid [serial] warnings#130

Merged
olleolleolle merged 1 commit into
ruby:masterfrom
olleolleolle:avoid-jruby-warnings
Jun 16, 2026
Merged

RubyDigest.java: avoid [serial] warnings#130
olleolleolle merged 1 commit into
ruby:masterfrom
olleolleolle:avoid-jruby-warnings

Conversation

@olleolleolle

@olleolleolle olleolleolle commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

This PR attempts to avoid compilation warnings in the Java extension.

The warnings this tries to avoid are called [serial], and are due to the fact that RubyObject class implements Serializable.

Now: 41 warnings.

Was: 44 warnings.

- mark algo as transient

The serialVersionUID values are the actual serialver-computed hashes for these two classes against JRuby 10.1.0.0. Inspired by jruby-openssl, puma, and nio4r.
@olleolleolle olleolleolle marked this pull request as ready for review June 16, 2026 09:06
@olleolleolle olleolleolle requested a review from knu as a code owner June 16, 2026 09:06
@olleolleolle olleolleolle merged commit 90c5577 into ruby:master Jun 16, 2026
44 checks passed
@olleolleolle olleolleolle deleted the avoid-jruby-warnings branch June 16, 2026 10:29
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.

2 participants