HHH-10281 - More formally deprecate the legacy bytecode enhancement code

This commit is contained in:
Steve Ebersole 2015-11-12 10:47:52 -06:00
parent 0b57c4e787
commit 9872358bed
2 changed files with 11 additions and 0 deletions

View File

@ -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

View File

@ -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();
} }