Steve Ebersole (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *commented* on HHH-16572 (
https://hibernate.atlassian.net/browse/HHH-16572?atlOrigin=eyJpIjoiYmVjZD...
)
Re: Incorrect enhancement for PROPERTY attributes with mismatched field and method names (
https://hibernate.atlassian.net/browse/HHH-16572?atlOrigin=eyJpIjoiYmVjZD...
)
I ran into a problem I just cannot understand. The problem seems isolated to the
BytecodeEnhancerRunner JUnit Runner we use to test enhancement, though I cannot explain
it. Hoping someone can help?
java.lang.ClassCastException: class org.junit.internal.runners.ErrorReportingRunner cannot
be cast to class org.junit.runners.ParentRunner
(org.junit.internal.runners.ErrorReportingRunner and org.junit.runners.ParentRunner are in
unnamed module of loader 'app')
If not, I think I’ll take you up on your offer Rafael.
What confuses me is that ByteBuddy does not load Class references into any classloader, so
I am not sure how using ByteBuddy has this affect at all.
The basic change I made is, when enhancing a class ( Enhancer#enhance ):
* Load its super TypeDescription ref, if one
* Load its FieldDescription refs
* Load its MethodDescription refs
(
https://hibernate.atlassian.net/browse/HHH-16572#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16572#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100225- sha1:6805d32 )