You are viewing a plain text version of this content. The canonical link for it is here.
Posted to imperius-dev@incubator.apache.org by "David Wood (JIRA)" <ji...@apache.org> on 2010/05/28 13:01:43 UTC

[jira] Commented: (IMPERIUS-32) Calling an operation of an anchor class that returns an array cannot be used as argument to operations such as AllInCollection

    [ https://issues.apache.org/jira/browse/IMPERIUS-32?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12872958#action_12872958 ] 

David Wood commented on IMPERIUS-32:
------------------------------------

This is probably the same as Imperius-22.  In general, this may an issue with the SPL spec, which I think says that arguments to the list operators must be literals.  Perhaps we should extend Imperius to support non-literals.

> Calling an operation of an anchor class that returns an array cannot be used as argument to operations such as AllInCollection
> ------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: IMPERIUS-32
>                 URL: https://issues.apache.org/jira/browse/IMPERIUS-32
>             Project: Imperius
>          Issue Type: Bug
>            Reporter: Erik Bengtson
>            Assignee: Bill Stoddard
>
> The expression object.getArrayString() is not allowed as argument to Collection operators
> Import Class package.Type:object;
> Strategy Execute_All_Applicable;
> Declaration
> {
> }
> Policy
> {
>     Condition
>     {
>         AllInCollection("up","EQUAL",object.getArrayString())==true
>     }
>     Decision
>     {
>         ...
>     }
> }:1;
> String[] getArrayString()
> {
> return new String[]{"up","up","up"};
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.