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

HHH-19017: Reproduce Class Cast Exception for PersistentAttributeInterceptable #9560

Open
wants to merge 1 commit into
base: 6.6
Choose a base branch
from

Conversation

jimsimon-wk
Copy link

This is not a fix, just a reproducer for an issue I encountered after upgrading to Hibernate 6.6 (from 6.5). I originally thought that the issue was confined to @OneToOne(FetchType.LAZY) but this test also fails for FetchType.EAGER. I believe the preconditions to reproduce this are

  1. @OneToOne property on a model
  2. @JoinColumn to a unique key (other than @Id)
  3. @EntityGraph being applied

This test should reproduce a ClassCastException that's thrown here.

Related Change:

@hibernate-github-bot
Copy link

hibernate-github-bot bot commented Jan 4, 2025

Thanks for your pull request!

This pull request does not follow the contribution rules. Could you have a look?

❌ All commit messages should start with a JIRA issue key matching pattern HHH-\d+
    ↳ Offending commits: [8928c6d]

› This message was automatically generated.

@jimsimon-wk
Copy link
Author

@yrodiere Are reproducing tests reviewed by the Hibernate Team before an HHH- ticket gets made?

@yrodiere
Copy link
Member

yrodiere commented Jan 6, 2025

@yrodiere Are reproducing tests reviewed by the Hibernate Team before an HHH- ticket gets made?

Hey. No, people reporting issues generally create the Jira ticket, with a link to the reproducer :)

@jimsimon-wk
Copy link
Author

@yrodiere Are reproducing tests reviewed by the Hibernate Team before an HHH- ticket gets made?

Hey. No, people reporting issues generally create the Jira ticket, with a link to the reproducer :)

My apologies! I didn't realize I could (and had to) create an account to create a ticket in the project.

@jimsimon-wk jimsimon-wk changed the title Reproduce Class Cast Exception for PersistentAttributeInterceptable HHH-19017: Reproduce Class Cast Exception for PersistentAttributeInterceptable Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants