[
http://opensource.atlassian.com/projects/hibernate/browse/ANN-782?page=co...
]
Alex Gitelman commented on ANN-782:
-----------------------------------
Here is a patch by the way
Index: src/java/org/hibernate/cfg/AnnotationBinder.java
===================================================================
--- src/java/org/hibernate/cfg/AnnotationBinder.java (revision 15549)
+++ src/java/org/hibernate/cfg/AnnotationBinder.java (working copy)
@@ -1110,6 +1110,7 @@
//TODO make those hardcoded tests more portable (through the bytecode
provider?)
return property.isAnnotationPresent( Transient.class )
||
"net.sf.cglib.transform.impl.InterceptFieldCallback".equals(
property.getType().getName() )
+ ||
"org.hibernate.repackage.cglib.transform.impl.InterceptFieldCallback".equals(
property.getType().getName() )
||
"org.hibernate.bytecode.javassist.FieldHandler".equals(
property.getType().getName() );
}
InterceptFieldCallback is being mapped again since its package
changed in Hibernate core 3.3.1
----------------------------------------------------------------------------------------------
Key: ANN-782
URL:
http://opensource.atlassian.com/projects/hibernate/browse/ANN-782
Project: Hibernate Annotations
Issue Type: Bug
Components: binder
Affects Versions: 3.4.0.GA
Reporter: Alex Gitelman
Hibernate-core generate fields of type
'org.hibernate.repackage.cglib.transform.impl.InterceptFieldCallback' instead of
net.sf package, therefore fix from ANN-133 can't work
From AnnotationBinder:
{code}
private static boolean mustBeSkipped(XProperty property, ExtendedMappings mappings) {
//TODO make those hardcoded tests more portable (through the bytecode provider?)
return property.isAnnotationPresent( Transient.class )
|| "net.sf.cglib.transform.impl.InterceptFieldCallback".equals(
property.getType().getName() )
|| "org.hibernate.bytecode.javassist.FieldHandler".equals(
property.getType().getName() );
}
{code}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira