Skip to content

Commit

Permalink
Revert to legacy behavior for Hibernate ORM bytecode enhancement of u…
Browse files Browse the repository at this point in the history
…nsupported classes

For backwards compatibility reasons.
  • Loading branch information
yrodiere committed Nov 22, 2024
1 parent b827df5 commit adf203c
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,11 @@ public UnsupportedEnhancementStrategy getUnsupportedEnhancementStrategy() {
// Lack of enhancement could lead to many problems,
// from bad performance, to Quarkus-specific optimizations causing errors/data loss,
// to incorrect generated bytecode (references to non-existing methods).
// If something prevents enhancement, it's just safer to have Hibernate ORM's enhancer fail
// For backwards compatibility reason, in this branch we adopt the legacy behavior of Hibernate ORM,
// which is to try to enhance all classes, ignoring any known issue.
// However, later versions of Quarkus (3.17+ at least) just have Hibernate ORM's enhancer fail.
// with a clear error message pointing to the application class that needs to be fixed.
return UnsupportedEnhancementStrategy.FAIL;
return UnsupportedEnhancementStrategy.LEGACY;
}

}

0 comments on commit adf203c

Please sign in to comment.