Skip to content

Commit 94aece2

Browse files
committed
Revert to legacy behavior for Hibernate ORM bytecode enhancement of unsupported classes
For backwards compatibility reasons.
1 parent 7df943a commit 94aece2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/integration/QuarkusEnhancementContext.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,11 @@ public UnsupportedEnhancementStrategy getUnsupportedEnhancementStrategy() {
3333
// Lack of enhancement could lead to many problems,
3434
// from bad performance, to Quarkus-specific optimizations causing errors/data loss,
3535
// to incorrect generated bytecode (references to non-existing methods).
36-
// If something prevents enhancement, it's just safer to have Hibernate ORM's enhancer fail
36+
// For backwards compatibility reason, in this branch we adopt the legacy behavior of Hibernate ORM,
37+
// which is to try to enhance all classes, ignoring any known issue.
38+
// However, later versions of Quarkus (3.17+ at least) just have Hibernate ORM's enhancer fail.
3739
// with a clear error message pointing to the application class that needs to be fixed.
38-
return UnsupportedEnhancementStrategy.FAIL;
40+
return UnsupportedEnhancementStrategy.LEGACY;
3941
}
4042

4143
}

0 commit comments

Comments
 (0)