From imperius-dev-return-398-apmail-incubator-imperius-dev-archive=incubator.apache.org@incubator.apache.org Wed May 27 00:27:57 2009 Return-Path: Delivered-To: apmail-incubator-imperius-dev-archive@minotaur.apache.org Received: (qmail 8191 invoked from network); 27 May 2009 00:27:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 27 May 2009 00:27:57 -0000 Received: (qmail 20609 invoked by uid 500); 27 May 2009 00:28:10 -0000 Delivered-To: apmail-incubator-imperius-dev-archive@incubator.apache.org Received: (qmail 20576 invoked by uid 500); 27 May 2009 00:28:10 -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 20566 invoked by uid 99); 27 May 2009 00:28:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 May 2009 00:28:09 +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; Wed, 27 May 2009 00:28:06 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 92EE8234C04B for ; Tue, 26 May 2009 17:27:45 -0700 (PDT) Message-ID: <1494134494.1243384065601.JavaMail.jira@brutus> Date: Tue, 26 May 2009 17:27:45 -0700 (PDT) From: "David Wood (JIRA)" To: imperius-dev@incubator.apache.org Subject: [jira] Created: (IMPERIUS-28) byte[] method return type does not match formal parameter 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 byte[] method return type does not match formal parameter --------------------------------------------------------- Key: IMPERIUS-28 URL: https://issues.apache.org/jira/browse/IMPERIUS-28 Project: Imperius Issue Type: Bug Environment: Windows, Java 1.5 Reporter: David Wood Assignee: Bill Stoddard It appears that a method's byte[] return type is not being properly matched with a byte[] method argument. The attached Java program includes a policy that passes the byte[] return value of a method to another method that expects the same. This gives the following message: May 26, 2009 8:20:52 PM org.apache.imperius.spl.parser.compiler.SPLTreeParser identPrimary SEVERE: main TreeParser::Exception creating Expression at line 4 : Formal and passed parameter types don't match for method takeByteArray Formal and passed parameter types don't match for method takeByteArray May 26, 2009 8:20:52 PM org.apache.imperius.spl.datastore.impl.PolicyParserImpl parseFile SEVERE: Error encountered while parsing tree Exception in thread "main" org.apache.imperius.spl.parser.exceptions.SPLException: Error encountered while parsing tree at org.apache.imperius.spl.datastore.impl.PolicyParserImpl.parseFile(PolicyParserImpl.java:166) at org.apache.imperius.spl.datastore.impl.PolicyParserImpl.createInternalPolicyObject(PolicyParserImpl.java:96) at com.ibm.watson.pml.bytearray.PolicyParser.main(PolicyParser.java:55) I've attached both the Java program and the ByteArrayFactory interface that is used in the policy (also found in the Java file). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.