We're updating the issue view to help you get more done. 

Javassist support broken by HHH-12760

Description

Our Javassist support has been completely broken by this commit: https://github.com/hibernate/hibernate-orm/commit/a67c6b9cd4fd16b02c4af02e7691ee1dc2042a0a#diff-5a7906bdb96b0b59acc1b49a19e4ba80L69

We now have the following errors when enhancing classes:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 Caused by: javassist.CannotCompileException: [source error] no such class: Objects at javassist.CtBehavior.insertBefore(CtBehavior.java:806) at javassist.CtBehavior.insertBefore(CtBehavior.java:766) at org.hibernate.bytecode.enhance.internal.javassist.PersistentAttributesEnhancer.generateFieldWriter(PersistentAttributesEnhancer.java:281) ... 60 more Caused by: compile error: no such class: Objects at javassist.compiler.MemberResolver.searchImports(MemberResolver.java:479) at javassist.compiler.MemberResolver.lookupClass(MemberResolver.java:422) at javassist.compiler.MemberResolver.lookupClassByJvmName(MemberResolver.java:329) at javassist.compiler.TypeChecker.atCallExpr(TypeChecker.java:711) at javassist.compiler.JvstTypeChecker.atCallExpr(JvstTypeChecker.java:170) at javassist.compiler.ast.CallExpr.accept(CallExpr.java:49) at javassist.compiler.TypeChecker.booleanExpr(TypeChecker.java:547) at javassist.compiler.TypeChecker.atExpr(TypeChecker.java:619) at javassist.compiler.ast.Expr.accept(Expr.java:71) at javassist.compiler.CodeGen.doTypeCheck(CodeGen.java:266) at javassist.compiler.CodeGen.compileBooleanExpr(CodeGen.java:260) at javassist.compiler.CodeGen.atIfStmnt(CodeGen.java:414) at javassist.compiler.CodeGen.atStmnt(CodeGen.java:385) at javassist.compiler.ast.Stmnt.accept(Stmnt.java:53) at javassist.compiler.Javac.compileStmnt(Javac.java:578) at javassist.CtBehavior.insertBefore(CtBehavior.java:786) ... 62 more

A FQCN should have been used: Objects is not in java.lang.

Environment

None

Status

Assignee

Guillaume Smet

Reporter

Guillaume Smet

Labels

None

Worked in

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Community Help Wanted

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

backportReEvaluate

None

Components

Fix versions

Priority

Blocker