From imperius-dev-return-383-apmail-incubator-imperius-dev-archive=incubator.apache.org@incubator.apache.org Tue Mar 24 20:26:14 2009 Return-Path: Delivered-To: apmail-incubator-imperius-dev-archive@minotaur.apache.org Received: (qmail 45439 invoked from network); 24 Mar 2009 20:26:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Mar 2009 20:26:13 -0000 Received: (qmail 43529 invoked by uid 500); 24 Mar 2009 20:26:13 -0000 Delivered-To: apmail-incubator-imperius-dev-archive@incubator.apache.org Received: (qmail 43500 invoked by uid 500); 24 Mar 2009 20:26:13 -0000 Mailing-List: contact imperius-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: imperius-dev@incubator.apache.org Delivered-To: mailing list imperius-dev@incubator.apache.org Received: (qmail 43490 invoked by uid 99); 24 Mar 2009 20:26:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Mar 2009 20:26:13 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Mar 2009 20:26:11 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8B9AF234C045 for ; Tue, 24 Mar 2009 13:25:50 -0700 (PDT) Message-ID: <1587036184.1237926350570.JavaMail.jira@brutus> Date: Tue, 24 Mar 2009 13:25:50 -0700 (PDT) From: "David Wood (JIRA)" To: imperius-dev@incubator.apache.org Subject: [jira] Resolved: (IMPERIUS-26) Argument parsing for reference to toString() is wrong In-Reply-To: <1926610009.1236797330584.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/IMPERIUS-26?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] David Wood resolved IMPERIUS-26. -------------------------------- Resolution: Fixed This is resolved fairly simply by changing the tree grammar parser (in imperius-splcore\src\main\antlr\org\apache\imperius\spl\parser\compiler\cimspl.tree.g) to create a new parameter list after creating the tuple that uses it. I ran this with a new 'ant build' on the trunk, and it seems to pass. Index: cimspl.tree.g =================================================================== RCS file: /cvsroot/wpml/Imperius-WPML/imperius-splcore/src/main/antlr/org/apache/imperius/spl/parser/compiler/cimspl.tree.g,v retrieving revision 1.2 diff -c -r1.2 cimspl.tree.g *** cimspl.tree.g 21 Oct 2008 15:20:25 -0000 1.2 --- cimspl.tree.g 24 Mar 2009 20:01:51 -0000 *************** *** 992,1000 **** sTab = new SPLSymbolTable(); tp = new IdentPrimaryTuple(arrexp, paramList, secondId, isMethod,sTab); identTupleList.add(tp); ! ! ! } )* ) --- 992,998 ---- sTab = new SPLSymbolTable(); tp = new IdentPrimaryTuple(arrexp, paramList, secondId, isMethod,sTab); identTupleList.add(tp); ! paramList = new ArrayList(); } )* ) > Argument parsing for reference to toString() is wrong > ----------------------------------------------------- > > Key: IMPERIUS-26 > URL: https://issues.apache.org/jira/browse/IMPERIUS-26 > Project: Imperius > Issue Type: Bug > Reporter: David Wood > Assignee: Bill Stoddard > > With the following policy: > Import Class java.util.Properties:list1; > Strategy Execute_All_Applicable; > Policy > { > Condition > { > list1.get("Foo").toString() == "something" > } > Decision > { > list1.toString() > } > }:1; > I get > Number of Formal and passed parameters don't match for method toString > This code used throw an exception (not sure why it's not now). This is produced based on a problem we are seeing with some other classes which DOES throw the exception. In looking into this a bit, it looks as if the "Foo" argument to the previous method is being passed to toString(). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.