Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-15664

(7.2.0) HHH-12784 Javassist support broken by HHH-12760

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 7.2.0.GA
    • None
    • Hibernate
    • None
    • Hide
      1. change default bytecode provider
        $ git diff hibernate-core/src/main/java/org/hibernate/cfg/Environment.java
        diff --git a/hibernate-core/src/main/java/org/hibernate/cfg/Environment.java b/hibernate-core/src/main/java/org/hibernate/cfg/Environment.java
        index 900a9502b5..cb37b06196 100644
        --- a/hibernate-core/src/main/java/org/hibernate/cfg/Environment.java
        +++ b/hibernate-core/src/main/java/org/hibernate/cfg/Environment.java
        @@ -348,7 +348,8 @@ public final class Environment implements AvailableSettings {
                public static final String BYTECODE_PROVIDER_NAME_DEFAULT = BYTECODE_PROVIDER_NAME_BYTEBUDDY;
         
                public static BytecodeProvider buildBytecodeProvider(Properties properties) {
        -               String provider = ConfigurationHelper.getString( BYTECODE_PROVIDER, properties, BYTECODE_PROVIDER_NAME_DEFAULT );
        +//             String provider = ConfigurationHelper.getString( BYTECODE_PROVIDER, properties, BYTECODE_PROVIDER_NAME_DEFAULT );
        +               String provider = ConfigurationHelper.getString( BYTECODE_PROVIDER, properties, BYTECODE_PROVIDER_NAME_JAVASSIST );
                        return buildBytecodeProvider( provider );
                }
         
        
      2. run hibernate tests
        ./gradlew clean build
        
      Show
      change default bytecode provider $ git diff hibernate-core/src/main/java/org/hibernate/cfg/Environment.java diff --git a/hibernate-core/src/main/java/org/hibernate/cfg/Environment.java b/hibernate-core/src/main/java/org/hibernate/cfg/Environment.java index 900a9502b5..cb37b06196 100644 --- a/hibernate-core/src/main/java/org/hibernate/cfg/Environment.java +++ b/hibernate-core/src/main/java/org/hibernate/cfg/Environment.java @@ -348,7 +348,8 @@ public final class Environment implements AvailableSettings { public static final String BYTECODE_PROVIDER_NAME_DEFAULT = BYTECODE_PROVIDER_NAME_BYTEBUDDY; public static BytecodeProvider buildBytecodeProvider(Properties properties) { - String provider = ConfigurationHelper.getString( BYTECODE_PROVIDER, properties, BYTECODE_PROVIDER_NAME_DEFAULT ); + // String provider = ConfigurationHelper.getString( BYTECODE_PROVIDER, properties, BYTECODE_PROVIDER_NAME_DEFAULT ); + String provider = ConfigurationHelper.getString( BYTECODE_PROVIDER, properties, BYTECODE_PROVIDER_NAME_JAVASSIST ); return buildBytecodeProvider( provider ); } run hibernate tests ./gradlew clean build

      This issue was supposed to be fixed for Hibernate ORM 5.3.3, but was inadvertently left out of that release:

      https://hibernate.atlassian.net/browse/HHH-12784

              gbadner@redhat.com Gail Badner (Inactive)
              gbadner@redhat.com Gail Badner (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: