Skip to content

Backport "Fix "Compiler crash when calling another file's inline def that uses a private constructor"" to 3.8.2#25189

Merged
WojciechMazur merged 1 commit intorelease-3.8.2from
release-3.8.2_backport-24941
Feb 5, 2026
Merged

Backport "Fix "Compiler crash when calling another file's inline def that uses a private constructor"" to 3.8.2#25189
WojciechMazur merged 1 commit intorelease-3.8.2from
release-3.8.2_backport-24941

Conversation

@WojciechMazur
Copy link
Contributor

Backports #24941 to the 3.8.2-RC2.

PR submitted by the release tooling.
[skip ci]

…constructor with @publicInBinary (#24941)

The assertion exists as a sanity check: private members should only be
accessed from within the same source file (or similar paths). The
ExpandPrivate phase then makes them non-private so the JVM allows the
access.
However, @publicInBinary members are designed to be accessed across
compilation units (that's the whole point of SIP-52), so they're a legitimate
exception to this sanity check.

[Cherry-picked b2fc9f3]
@WojciechMazur
Copy link
Contributor Author

No regressions detected in the community build up to release-3.8.2_backport-25135.

Reference

@WojciechMazur WojciechMazur merged commit dc5e93f into release-3.8.2 Feb 5, 2026
99 of 100 checks passed
@WojciechMazur WojciechMazur deleted the release-3.8.2_backport-24941 branch February 5, 2026 15:43
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