Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 28437 invoked from network); 9 Apr 2007 09:36:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Apr 2007 09:36:55 -0000 Received: (qmail 59159 invoked by uid 500); 9 Apr 2007 09:37:01 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 58863 invoked by uid 500); 9 Apr 2007 09:37:00 -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 58746 invoked by uid 99); 9 Apr 2007 09:37:00 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Apr 2007 02:36:59 -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, 09 Apr 2007 02:36:52 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B5529714075 for ; Mon, 9 Apr 2007 02:36:32 -0700 (PDT) Message-ID: <20699081.1176111392732.JavaMail.jira@brutus> Date: Mon, 9 Apr 2007 02:36:32 -0700 (PDT) From: "Marcel Reutegger (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Commented: (JCR-804) Avoid using MultiTermDocs In-Reply-To: <28516804.1174474352133.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-804?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12487515 ] Marcel Reutegger commented on JCR-804: -------------------------------------- Hi Ate, What kind of java compiler are you using? My Sun javac (1.4.2_12) does not show this error. I think the relevant section in the JLS is the following: http://java.sun.com/docs/books/jls/second_edition/html/expressions.doc.html#253028 In our case C is an inner member class. Furthermore we are using an unqualified class instance creation expression and then it's the second sub case: "Otherwise, if C is a member of an enclosing class then let O be the innermost lexically enclosing class of which C is a member, and let n be an integer such that O is the nth lexically enclosing class of the class in which the class instance creation expression appears. The immediately enclosing instance of i is the nth lexically enclosing instance of this." If C is the RangeQueryScorer class then O is the RangeQuery class. The enclosing classes of the class in which the class instance creating expression appears are: 0th: anonymous ScorerFactory class 1st: RangeQueryWeight 2nd: RangeQuery Therefore n is 2 (because O is the RangeQuery class) and the immediately enclosing instance of i (i is the instance being created) is RangeQuery.this. According to the JLS a qualified class instance creation expression is not necessary here. Thus, both should work: return new RangeQueryScorer(searcher.getSimilarity(), reader); as well as: return RangeQuery.this.new RangeQueryScorer(searcher.getSimilarity(), reader); > Avoid using MultiTermDocs > ------------------------- > > Key: JCR-804 > URL: https://issues.apache.org/jira/browse/JCR-804 > Project: Jackrabbit > Issue Type: Improvement > Components: query > Reporter: Marcel Reutegger > Priority: Minor > Fix For: 1.3 > > > Similar to MatchAllQuery also RangeQuery and WildcardQuery will result in use of MultiTermDocs. Those queries should also use the MultiScorer. See also issue JCR-791. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.