Skip to content

Conversation

@graalvmbot
Copy link
Collaborator

@graalvmbot graalvmbot commented Jul 1, 2025

This PR prevents ReflectionDataBuilder from considering custom serialization constructors in the heap as the canonical constructor for its signature. This prevents a bug where Object.class.newInstance() would create an instance of SerializationSupport$StubForAbstractClass instead of Object.

Fixes #11429

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jul 1, 2025
@graalvmbot graalvmbot merged commit e45b052 into master Jul 1, 2025
13 checks passed
@graalvmbot graalvmbot deleted the lottet/GR-66194-newinstance-stub branch July 1, 2025 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[GR-66194] java.lang.Object.newInstance() returns instance of SerializationSupport$StubForAbstractClass

2 participants