File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
hibernate-core/src/main/java/org/hibernate
bytecode/buildtime/internal Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 20
20
import org .hibernate .bytecode .internal .javassist .BytecodeProviderImpl ;
21
21
import org .hibernate .bytecode .internal .javassist .FieldHandled ;
22
22
import org .hibernate .bytecode .spi .ClassTransformer ;
23
+ import org .hibernate .internal .log .DeprecationLogger ;
23
24
24
25
/**
25
26
* Strategy for performing build-time instrumentation of persistent classes in order to enable
@@ -42,6 +43,7 @@ public class JavassistInstrumenter extends AbstractInstrumenter {
42
43
*/
43
44
public JavassistInstrumenter (Logger logger , Options options ) {
44
45
super ( logger , options );
46
+ DeprecationLogger .DEPRECATION_LOGGER .logDeprecatedBytecodeEnhancement ();
45
47
}
46
48
47
49
@ Override
Original file line number Diff line number Diff line change @@ -200,4 +200,13 @@ void connectionProviderClassDeprecated(
200
200
value = "Found use of deprecated transaction factory setting [%s]; use the new TransactionCoordinatorBuilder settings [%s] instead"
201
201
)
202
202
void logDeprecatedTransactionFactorySetting (String legacySettingName , String updatedSettingName );
203
+
204
+ @ LogMessage (level = WARN )
205
+ @ Message (
206
+ id = 90000019 ,
207
+ value = "You are using the deprecated legacy bytecode enhancement feature which has been superseded by a vastly improved bytecode enhancer."
208
+ )
209
+ void logDeprecatedBytecodeEnhancement ();
210
+
211
+
203
212
}
You can’t perform that action at this time.
0 commit comments