You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Dave Brosius (JIRA)" <ji...@apache.org> on 2008/02/20 04:00:45 UTC
[jira] Updated: (JCR-1398) [PATCH] ClassDescriptor.hasIdField uses
faulty logic
[ https://issues.apache.org/jira/browse/JCR-1398?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dave Brosius updated JCR-1398:
------------------------------
Attachment: classdescriptor_isid.patch
> [PATCH] ClassDescriptor.hasIdField uses faulty logic
> ----------------------------------------------------
>
> Key: JCR-1398
> URL: https://issues.apache.org/jira/browse/JCR-1398
> Project: Jackrabbit
> Issue Type: Bug
> Components: jackrabbit-ocm
> Affects Versions: 1.4
> Reporter: Dave Brosius
> Priority: Minor
> Fix For: 1.4.1
>
> Attachments: classdescriptor_isid.patch
>
>
> hasIdField tries to compare a FieldDescriptor to an empty string, which doesn't make sense, here:
> public boolean hasIdField() {
> return (this.idFieldDescriptor != null && ! this.idFieldDescriptor.equals(""));
> }
> i'm assuming it should be
> return (this.idFieldDescriptor != null && this.idFieldDescriptor.isId());
> patch does this
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.