Skip to content

Commit 472f4ab

Browse files
committed
HHH-10280 - Remove legacy bytecode enhancement artifacts
1 parent c0528b7 commit 472f4ab

File tree

134 files changed

+639
-6421
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

134 files changed

+639
-6421
lines changed

hibernate-core/src/main/java/org/hibernate/Hibernate.java

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@
88

99
import java.util.Iterator;
1010

11-
import org.hibernate.bytecode.enhance.spi.interceptor.LazyAttributeLoader;
12-
import org.hibernate.bytecode.instrumentation.internal.FieldInterceptionHelper;
13-
import org.hibernate.bytecode.instrumentation.spi.FieldInterceptor;
11+
import org.hibernate.bytecode.enhance.spi.interceptor.LazyAttributeLoadingInterceptor;
1412
import org.hibernate.collection.spi.PersistentCollection;
1513
import org.hibernate.engine.HibernateIterator;
1614
import org.hibernate.engine.jdbc.LobCreator;
@@ -174,16 +172,11 @@ public static boolean isPropertyInitialized(Object proxy, String propertyName) {
174172

175173
if ( entity instanceof PersistentAttributeInterceptable ) {
176174
PersistentAttributeInterceptor interceptor = ( (PersistentAttributeInterceptable) entity ).$$_hibernate_getInterceptor();
177-
if ( interceptor != null && interceptor instanceof LazyAttributeLoader ) {
178-
return ( (LazyAttributeLoader) interceptor ).isAttributeLoaded( propertyName );
175+
if ( interceptor != null && interceptor instanceof LazyAttributeLoadingInterceptor ) {
176+
return ( (LazyAttributeLoadingInterceptor) interceptor ).isAttributeLoaded( propertyName );
179177
}
180178
}
181179

182-
if ( FieldInterceptionHelper.isInstrumented( entity ) ) {
183-
final FieldInterceptor interceptor = FieldInterceptionHelper.extractFieldInterceptor( entity );
184-
return interceptor == null || interceptor.isInitialized( propertyName );
185-
}
186-
187180
return true;
188181
}
189182

hibernate-core/src/main/java/org/hibernate/bytecode/buildtime/internal/JavassistInstrumenter.java

Lines changed: 0 additions & 93 deletions
This file was deleted.

hibernate-core/src/main/java/org/hibernate/bytecode/buildtime/internal/package-info.java

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)