[hibernate-issues] [Hibernate-JIRA] Commented: (ANN-782) InterceptFieldCallback is being mapped again since its package changed in Hibernate core 3.3.1

Alex Gitelman (JIRA) noreply at atlassian.com
Wed Nov 12 01:30:15 EST 2008


    [ http://opensource.atlassian.com/projects/hibernate/browse/ANN-782?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=31684#action_31684 ] 

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.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list