Return-Path: X-Original-To: apmail-poi-dev-archive@www.apache.org Delivered-To: apmail-poi-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0E9A0CA97 for ; Thu, 19 Apr 2012 11:39:42 +0000 (UTC) Received: (qmail 5962 invoked by uid 500); 19 Apr 2012 11:39:41 -0000 Delivered-To: apmail-poi-dev-archive@poi.apache.org Received: (qmail 5930 invoked by uid 500); 19 Apr 2012 11:39:41 -0000 Mailing-List: contact dev-help@poi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "POI Developers List" Delivered-To: mailing list dev@poi.apache.org Received: (qmail 5922 invoked by uid 99); 19 Apr 2012 11:39:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Apr 2012 11:39:41 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.115] (HELO eir.zones.apache.org) (140.211.11.115) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Apr 2012 11:39:35 +0000 Received: by eir.zones.apache.org (Postfix, from userid 80) id 5DD28343F; Thu, 19 Apr 2012 11:39:14 +0000 (UTC) From: bugzilla@apache.org To: dev@poi.apache.org Subject: DO NOT REPLY [Bug 53101] FormulaEvaluator incorrectly evaluates sum over cell range > 255 Date: Thu, 19 Apr 2012 11:39:13 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: POI X-Bugzilla-Component: XSSF X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: yegor@dinom.ru X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: dev@poi.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: https://issues.apache.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 https://issues.apache.org/bugzilla/show_bug.cgi?id=53101 --- Comment #7 from Yegor Kozlov 2012-04-19 11:39:13 UTC --- I thought about removing all &'s too. The purpose of these operators is to guarantee that the the result fits in the .xls grid bounds (2^8 cols and 2^16 rows). We don't need them in general case, but I want research the problem and make sure it is really so. Yegor (In reply to comment #6) > How about removing the &'s altogether?: > > public ValueEval getRelativeValue(int relativeRowIndex, int > relativeColumnIndex) { > > int rowIx = relativeRowIndex + getFirstRow(); > int colIx = relativeColumnIndex + getFirstColumn(); > > return _evaluator.getEvalForCell(rowIx, colIx); > } > > This passes all the test as well. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org For additional commands, e-mail: dev-help@poi.apache.org