Skip to content

HHH-20256 Make ByteBuddy bytecode generation reproducible#12071

Merged
beikov merged 1 commit into
hibernate:7.3from
beikov:HHH-20256-7.3
Mar 26, 2026
Merged

HHH-20256 Make ByteBuddy bytecode generation reproducible#12071
beikov merged 1 commit into
hibernate:7.3from
beikov:HHH-20256-7.3

Conversation

@beikov

@beikov beikov commented Mar 25, 2026

Copy link
Copy Markdown
Member

Backport of #11982


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license
and can be relicensed under the terms of the LGPL v2.1 license in the future at the maintainers' discretion.
For more information on licensing, please check here.



Please make sure that the following tasks are completed:
Tasks specific to HHH-20256 (Improvement):

  • Add tests for feature/improvement
  • Update documentation as relevant: javadoc for changed API, documentation/src/main/asciidoc/userguide for all features, documentation/src/main/asciidoc/introduction for main features, links from existing documentation
  • Add entries as relevant to migration-guide.adoc (breaking changes) and whats-new.adoc (new features/improvements)

https://hibernate.atlassian.net/browse/HHH-20256

By using a fixed suffix for everything generated by Hibernate ORM.
This will allow for reproducible builds.

Note that the resulting name still has an additional suffix which is
related to the current element. Usually, it's a hashCode representing
the element, hashCode that is stable from builds to builds.
@beikov
beikov merged commit 5e883f3 into hibernate:7.3 Mar 26, 2026
29 of 30 checks passed
@beikov
beikov deleted the HHH-20256-7.3 branch March 26, 2026 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants