Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-2719

CGLib and ASM included in EAP causes failure in Hibernate test

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • EAP 5.0.0.CR5
    • EAP 5.0.0.CR3, EAP 5.0.0.CR4 (FCS and BETA2)
    • Hibernate
    • None

    Description

      The versions of CGLib and ASM included in EAP5 causes the test org.hibernate.test.bytecode.cglib.ReflectionOptimizerTest to fail. When using the JARs specified in Hibernate Core's pom.xml , the same test passes.

      Four variants were tested:
      1) cglib.jar and asm.jar from Seam distributed in EAP5
      2) cglib-nodep.jar also from Seam.
      3) cglib-nodep and asm from RESTeasy distributed in EAP5.
      4) JARs from local maven repository, based on the versions specified in Hibernate Core's pom.xml from tag Branch_3_3_2_GA_CP

      The first 3 variants fails and the following output is recorded:
      11:37:07,608 INFO UnitTestCase:? - Starting test org.hibernate.test.bytecode.cglib.ReflectionOptimizerTest#testReflectionOptimization
      11:37:07,804 WARN BytecodeProviderImpl:50 - The CGLIB BytecodeProvider impl is considered deprecated and not recommended for use
      11:37:08,050 DEBUG BytecodeProviderImpl:95 - reflection optimizer disabled for: org.hibernate.test.bytecode.Bean [CodeGenerationException: java.lang.reflect.InvocationTargetException-->null
      11:37:08,050 INFO UnitTestCase:? - Completed test org.hibernate.test.bytecode.cglib.ReflectionOptimizerTest#testReflectionOptimization

      The fourth passes, but is not a valid workaround, as it should work with the shipped binaries.

      Attachments

        Issue Links

          Activity

            People

              shaozliu Strong Liu(刘少壮) (Inactive)
              jpkroehling@redhat.com Juraci Paixão Kröhling (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: