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

Hibernate Bytecode Enhancement wrongly applied on every field

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • EAP-XP-1.0.0.GA-CR1
    • Hibernate, JPA/Hibernate
    • None
    • False
    • False
    • Undefined
    • Hide

      I have prepared a simple example with just on entity at: git@github.com:BlackTazz89/hibernate-enhance-strange-behaviour.git

       

      Just clone the repo and execute: ./mvnw clean package && javap -v target/classes/com/example/demo/core/SimpleEntity.class | grep "Method \$\$_hibernate"

       

      You will find out that every field got enhanced.

      Show
      I have prepared a simple example with just on entity at: git@github.com:BlackTazz89/hibernate-enhance-strange-behaviour.git   Just clone the repo and execute: ./mvnw clean package && javap -v target/classes/com/example/demo/core/SimpleEntity.class | grep "Method \$\$_hibernate"   You will find out that every field got enhanced.

    Description

      When I enable the "hibernate-enhance-maven-plugin", I got every field of every entity enhanced. Even if it's annotated as EAGER and even if it's final (this yield to a IllegalAccessError)

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: