Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 51729 invoked from network); 3 Sep 2007 13:51:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Sep 2007 13:51:22 -0000 Received: (qmail 47493 invoked by uid 500); 3 Sep 2007 13:51:16 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 47470 invoked by uid 500); 3 Sep 2007 13:51:16 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 47461 invoked by uid 99); 3 Sep 2007 13:51:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Sep 2007 06:51:16 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Sep 2007 13:51:18 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 3512271420A for ; Mon, 3 Sep 2007 06:50:58 -0700 (PDT) Message-ID: <23051223.1188827458197.JavaMail.jira@brutus> Date: Mon, 3 Sep 2007 06:50:58 -0700 (PDT) From: "Felix Meschberger (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Updated: (JCR-1107) ObjectIterator may return null, which is not readily expected from an Iterator In-Reply-To: <5696507.1188827337874.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JCR-1107?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Felix Meschberger updated JCR-1107: ----------------------------------- Attachment: JCR-1107.diff Proposed change to ObjectIterator. The consequence of the look-ahead and non-1:1 mapping of mapped objects in the iterator and underlying node iterator is, that the remove method may not be properly implemented. Therefore, this method just throws an UnsupportedOperationException. I understand, that there may be situations, where it may be desirable to have a 1:1 mapping of the underlying node iterator to the ObjectIterator. But I assume, that in the context of an application operating on mapped data, this is rather the exception than the rule. > ObjectIterator may return null, which is not readily expected from an Iterator > ------------------------------------------------------------------------------ > > Key: JCR-1107 > URL: https://issues.apache.org/jira/browse/JCR-1107 > Project: Jackrabbit > Issue Type: Improvement > Components: jcr-mapping > Affects Versions: 1.4 > Reporter: Felix Meschberger > Fix For: 1.4 > > Attachments: JCR-1107.diff > > > The ObjectIterator class implements an Iterator of objects mapped from an underlying NodeIterator. This ObjectIterator may return null from next() if no mapping for a node in the iterator exists. Rather than returning null, the iterator should probably just ignore the unmappable node and return an object from the next node in the underlying iterator which is mappable. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.