Issue Type: Bug Bug
Affects Versions: 4.1.6, 3.6.9
Assignee: Unassigned
Components: core
Created: 22/Aug/12 5:16 PM
Description:

Due to changes in the Java verifier, the code generated by JavaAssist during compile time instrumentation results in the following types of errors:

java.lang.VerifyError: Expecting a stackmap frame at branch target X.

To Reproduce:
Create entity with @LazyToOne(NO_PROXY) annotation. Add instrumentation by using the org.hibernate.tool.instrument.javassist.InstrumentTask

Currently, a workaround exists by specifying -XX:-UseSplitVerifier which will fall back to the Java 6 verifier when necessary.

Given this is a workaround, the proper bytecode should be generated. According to https://issues.jboss.org/browse/JASSIST-155: "For an application directly using a lower-level API (javassist.bytecode.* classes),
updating a stack map table is the responsibility of the application"

Project: Hibernate ORM
Priority: Major Major
Reporter: Dustin Schultz
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira