HHH-10281 - More formally deprecate the legacy bytecode enhancement code
This commit is contained in:
parent
0b57c4e787
commit
9872358bed
|
@ -20,6 +20,7 @@ import org.hibernate.bytecode.buildtime.spi.Logger;
|
||||||
import org.hibernate.bytecode.internal.javassist.BytecodeProviderImpl;
|
import org.hibernate.bytecode.internal.javassist.BytecodeProviderImpl;
|
||||||
import org.hibernate.bytecode.internal.javassist.FieldHandled;
|
import org.hibernate.bytecode.internal.javassist.FieldHandled;
|
||||||
import org.hibernate.bytecode.spi.ClassTransformer;
|
import org.hibernate.bytecode.spi.ClassTransformer;
|
||||||
|
import org.hibernate.internal.log.DeprecationLogger;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Strategy for performing build-time instrumentation of persistent classes in order to enable
|
* Strategy for performing build-time instrumentation of persistent classes in order to enable
|
||||||
|
@ -42,6 +43,7 @@ public class JavassistInstrumenter extends AbstractInstrumenter {
|
||||||
*/
|
*/
|
||||||
public JavassistInstrumenter(Logger logger, Options options) {
|
public JavassistInstrumenter(Logger logger, Options options) {
|
||||||
super( logger, options );
|
super( logger, options );
|
||||||
|
DeprecationLogger.DEPRECATION_LOGGER.logDeprecatedBytecodeEnhancement();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -200,4 +200,13 @@ public interface DeprecationLogger extends BasicLogger {
|
||||||
value = "Found use of deprecated transaction factory setting [%s]; use the new TransactionCoordinatorBuilder settings [%s] instead"
|
value = "Found use of deprecated transaction factory setting [%s]; use the new TransactionCoordinatorBuilder settings [%s] instead"
|
||||||
)
|
)
|
||||||
void logDeprecatedTransactionFactorySetting(String legacySettingName, String updatedSettingName);
|
void logDeprecatedTransactionFactorySetting(String legacySettingName, String updatedSettingName);
|
||||||
|
|
||||||
|
@LogMessage(level = WARN)
|
||||||
|
@Message(
|
||||||
|
id = 90000019,
|
||||||
|
value = "You are using the deprecated legacy bytecode enhancement feature which has been superseded by a vastly improved bytecode enhancer."
|
||||||
|
)
|
||||||
|
void logDeprecatedBytecodeEnhancement();
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue