From dc27315c3a623d0e7ff9722c94a4c07f054f1703 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Deleuze?= Date: Sun, 18 Sep 2022 19:38:10 +0200 Subject: [PATCH 1/2] Filter out Bytebuddy entries in Hibernate metadata Not used on native image --- .../6.1.1.Final/reflect-config.json | 64 ------------------- 1 file changed, 64 deletions(-) diff --git a/metadata/org.hibernate.orm/hibernate-core/6.1.1.Final/reflect-config.json b/metadata/org.hibernate.orm/hibernate-core/6.1.1.Final/reflect-config.json index 92d62e850..cc6b72a7d 100644 --- a/metadata/org.hibernate.orm/hibernate-core/6.1.1.Final/reflect-config.json +++ b/metadata/org.hibernate.orm/hibernate-core/6.1.1.Final/reflect-config.json @@ -353,18 +353,6 @@ "typeReachable": "org.hibernate.boot.jaxb.internal.MappingBinder" } }, - { - "name": "[Ljava.lang.annotation.Annotation;", - "condition": { - "typeReachable": "org.hibernate.bytecode.internal.bytebuddy.ByteBuddyState" - } - }, - { - "name": "[Ljava.lang.annotation.Annotation;", - "condition": { - "typeReachable": "org.hibernate.bytecode.internal.bytebuddy.ByteBuddyState$ProxyDefinitionHelpers$1" - } - }, { "name": "[Ljava.lang.annotation.Annotation;", "condition": { @@ -2168,19 +2156,6 @@ } ] }, - { - "name": "jdk.internal.reflect.GeneratedConstructorAccessor22", - "condition": { - "typeReachable": "org.hibernate.bytecode.internal.bytebuddy.ByteBuddyState$ProxyDefinitionHelpers" - }, - "unsafeAllocated": true, - "methods": [ - { - "name": "", - "parameterTypes": [] - } - ] - }, { "name": "jdk.internal.reflect.GeneratedConstructorAccessor23", "condition": { @@ -10504,25 +10479,6 @@ } ] }, - { - "name": "org.hibernate.bytecode.internal.bytebuddy.BytecodeProviderImpl", - "condition": { - "typeReachable": "org.hibernate.boot.internal.SessionFactoryBuilderImpl" - } - }, - { - "name": "org.hibernate.bytecode.internal.bytebuddy.BytecodeProviderImpl", - "queryAllPublicMethods": true, - "condition": { - "typeReachable": "org.hibernate.jpa.HibernatePersistenceProvider" - } - }, - { - "name": "org.hibernate.bytecode.internal.bytebuddy.BytecodeProviderImpl", - "condition": { - "typeReachable": "org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl" - } - }, { "name": "org.hibernate.cache.internal.EnabledCaching", "condition": { @@ -11782,26 +11738,6 @@ "typeReachable": "org.hibernate.mapping.Property" } }, - { - "name": "org.hibernate.proxy.HibernateProxy", - "condition": { - "typeReachable": "org.hibernate.bytecode.internal.bytebuddy.ByteBuddyState" - } - }, - { - "name": "org.hibernate.proxy.ProxyConfiguration", - "condition": { - "typeReachable": "org.hibernate.bytecode.internal.bytebuddy.ByteBuddyState" - } - }, - { - "name": "org.hibernate.proxy.ProxyConfiguration$InterceptorDispatcher", - "queryAllDeclaredMethods": true, - "condition": { - "typeReachable": "org.hibernate.bytecode.internal.bytebuddy.ByteBuddyState$ProxyDefinitionHelpers$1" - }, - "queryAllDeclaredConstructors": true - }, { "name": "org.hibernate.query.hql.HqlLogging_$logger", "condition": { From 8fd3b9d42a4569089e428329499b31dc8847be77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Deleuze?= Date: Sun, 18 Sep 2022 19:39:15 +0200 Subject: [PATCH 2/2] Remove empty proxies in Hibernate metadata Closes gh-55 --- .../6.1.1.Final/proxy-config.json | 96 ------------------- 1 file changed, 96 deletions(-) diff --git a/metadata/org.hibernate.orm/hibernate-core/6.1.1.Final/proxy-config.json b/metadata/org.hibernate.orm/hibernate-core/6.1.1.Final/proxy-config.json index cedd54992..d967e1eb7 100644 --- a/metadata/org.hibernate.orm/hibernate-core/6.1.1.Final/proxy-config.json +++ b/metadata/org.hibernate.orm/hibernate-core/6.1.1.Final/proxy-config.json @@ -457,102 +457,6 @@ "org.glassfish.jaxb.core.v2.model.annotation.Locatable" ] }, - { - "condition": { - "typeReachable": "org.hibernate.bytecode.internal.bytebuddy.ByteBuddyState$ProxyDefinitionHelpers" - }, - "interfaces": [] - }, - { - "condition": { - "typeReachable": "org.hibernate.bytecode.internal.bytebuddy.BytecodeProviderImpl" - }, - "interfaces": [] - }, - { - "condition": { - "typeReachable": "org.hibernate.jpa.HibernatePersistenceProvider" - }, - "interfaces": [] - }, - { - "condition": { - "typeReachable": "org.hibernate.cfg.AnnotationBinder" - }, - "interfaces": [] - }, - { - "condition": { - "typeReachable": "org.hibernate.jpa.HibernatePersistenceProvider" - }, - "interfaces": [] - }, - { - "condition": { - "typeReachable": "org.hibernate.jpa.boot.spi.Bootstrap" - }, - "interfaces": [] - }, - { - "condition": { - "typeReachable": "org.hibernate.boot.jaxb.internal.MappingBinder" - }, - "interfaces": [] - }, - { - "condition": { - "typeReachable": "org.hibernate.bytecode.internal.bytebuddy.ByteBuddyState$ProxyDefinitionHelpers" - }, - "interfaces": [] - }, - { - "condition": { - "typeReachable": "org.hibernate.bytecode.internal.bytebuddy.ByteBuddyState$ProxyDefinitionHelpers$1" - }, - "interfaces": [] - }, - { - "condition": { - "typeReachable": "org.hibernate.cfg.AnnotationBinder" - }, - "interfaces": [] - }, - { - "condition": { - "typeReachable": "org.hibernate.jpa.HibernatePersistenceProvider" - }, - "interfaces": [] - }, - { - "condition": { - "typeReachable": "org.hibernate.jpa.boot.spi.Bootstrap" - }, - "interfaces": [] - }, - { - "condition": { - "typeReachable": "org.hibernate.jpa.event.internal.CallbackDefinitionResolverLegacyImpl" - }, - "interfaces": [] - }, - { - "condition": { - "typeReachable": "org.hibernate.cfg.AnnotationBinder" - }, - "interfaces": [] - }, - { - "condition": { - "typeReachable": "org.hibernate.jpa.HibernatePersistenceProvider" - }, - "interfaces": [] - }, - { - "condition": { - "typeReachable": "org.hibernate.jpa.event.internal.CallbackDefinitionResolverLegacyImpl" - }, - "interfaces": [] - }, { "condition": { "typeReachable": "org.hibernate.jpa.boot.spi.Bootstrap"