You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Christophe Lombart (JIRA)" <ji...@apache.org> on 2008/03/11 23:16:46 UTC
[jira] Assigned: (JCR-1336) Bug in duplicate mapping check
[ https://issues.apache.org/jira/browse/JCR-1336?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christophe Lombart reassigned JCR-1336:
---------------------------------------
Assignee: Christophe Lombart
> Bug in duplicate mapping check
> ------------------------------
>
> Key: JCR-1336
> URL: https://issues.apache.org/jira/browse/JCR-1336
> Project: Jackrabbit
> Issue Type: Bug
> Components: jackrabbit-ocm
> Affects Versions: 1.4
> Reporter: Carsten Ziegeler
> Assignee: Christophe Lombart
>
> There is a bug in the MappingDescriptor for checking if a mapping for a node type is already available. The following patch solves this problem:
> Index: /Users/cziegeler/Developer/workspaces/default/jackrabbit/jackrabbit-ocm/src/main/java/org/apache/jackrabbit/ocm/mapper/model/MappingDescriptor.java
> ===================================================================
> --- /Users/cziegeler/Developer/workspaces/default/jackrabbit/jackrabbit-ocm/src/main/java/org/apache/jackrabbit/ocm/mapper/model/MappingDescriptor.java (revision 614136)
> +++ /Users/cziegeler/Developer/workspaces/default/jackrabbit/jackrabbit-ocm/src/main/java/org/apache/jackrabbit/ocm/mapper/model/MappingDescriptor.java (working copy)
> @@ -75,7 +75,7 @@
> if (null != classDescriptor.getJcrType() && ! "".equals(classDescriptor.getJcrType()) &&
> ! ManagerConstant.NT_UNSTRUCTURED.equals(classDescriptor.getJcrType()))
> {
> - if ((classDescriptorsByNodeType.get(classDescriptor.getClassName()) != null) &&
> + if ((classDescriptorsByNodeType.get(classDescriptor.getJcrType()) != null) &&
> classDescriptor.usesNodeTypePerConcreteClassStrategy() )
> {
> log.warn("Duplicate classdescriptor for node type : " + classDescriptor.getJcrType());
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.