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-18901 possible fix for Duplicate annotation for class: interface org.hibernate.bytecode.enhance.spi.EnhancementInfo: @org.hibernate.bytecode.enhance.spi.EnhancementInfo(version="6.6.3.Final")" During WildFly TCK testing #9415

Draft
wants to merge 4 commits into
base: 6.6
Choose a base branch
from

Conversation

scottmarlow
Copy link
Member

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

Add clear method to ModelTypePool which seems to avoid the duplicate annotation problem.

Also add TRACE logging to show cache hit/miss in OverridingClassFileLocator to possibly help explore if this pull request negatively impacts the improvements made for resolving https://hibernate.atlassian.net/browse/HHH-18011 (Parallel entity enhancement causes a classloader cache stampede).

@scottmarlow scottmarlow marked this pull request as draft December 12, 2024 22:18
@scottmarlow
Copy link
Member Author

After some discussion with Sanne in https://hibernate.zulipchat.com/#narrow/channel/132094-hibernate-orm-dev/topic/HHH-18901.20Duplicate.20annotation.20for.20EnhancementInfo.20class/near/488724657, I'm converting this pr to be a draft so that it isn't merged as is.

How does the ModelTypePool.resolutions cache impact the super (TypePool.Default) class enough to cause duplicate EnhancementInfo annotations to be added to the instrumented class?

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.

1 participant