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 2009/02/24 13:38:01 UTC

[jira] Created: (IMPERIUS-22) Java List objects as collections not supported?

Java List objects as collections not supported?
-----------------------------------------------

                 Key: IMPERIUS-22
                 URL: https://issues.apache.org/jira/browse/IMPERIUS-22
             Project: Imperius
          Issue Type: Bug
            Reporter: David Wood
            Assignee: Bill Stoddard


The following does not parse.  Should it?

Import Class java.util.List:list1;
Strategy Execute_All_Applicable;
Policy 
{
	Condition 
	{  
	   inCollection("1", list1)
	}
	Decision 
	{   
		list.get(1)
	}
}:1;

However, it does parse if you change it to...

Import Class java.util.List:list1;
Strategy Execute_All_Applicable;
Policy 
{
	Condition 
	{  
	   inCollection("1",[ "1", "2" ])
	}
	Decision 
	{   
		list.get(1)
	}
}:1;

Should we be able to pass java List objects as collections?

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


Re: [jira] Commented: (IMPERIUS-22) Java List objects as collections not supported?

Posted by Xiping Wang <xi...@us.ibm.com>.
This was not a bug. According to SPL specification, only SPL expressions
are allowed as arguments to the SPL basic collection operators. I think I
mentioned this before.

Xiping


                                                                                                                                               
  From:       David Wood/Watson/IBM@IBMUS                                                                                                      
                                                                                                                                               
  To:         imperius-dev@incubator.apache.org                                                                                                
                                                                                                                                               
  Cc:         imperius-dev@incubator.apache.org                                                                                                
                                                                                                                                               
  Date:       10/07/2009 04:45 PM                                                                                                              
                                                                                                                                               
  Subject:    Re: [jira] Commented: (IMPERIUS-22) Java List objects as collections not supported?                                              
                                                                                                                                               





I don't believe this one was ever really fixed.  It's more  question of
whether or not non-literal lists are allowed as arguments to the
collection operators.

David Wood
Policy Technologies Group
IBM TJ Watson Research Center
dawood@us.ibm.com
914-784-5123 (office), 914-396-6515 (mobile)




From:
"Neeraj Joshi (JIRA)" <ji...@apache.org>
To:
imperius-dev@incubator.apache.org
Date:
10/07/2009 03:32 PM
Subject:
[jira] Commented: (IMPERIUS-22) Java List objects as collections not
supported?




    [
https://issues.apache.org/jira/browse/IMPERIUS-22?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12763208#action_12763208

]

Neeraj Joshi commented on IMPERIUS-22:
--------------------------------------

patch checked in by David Wood

> Java List objects as collections not supported?
> -----------------------------------------------
>
>                 Key: IMPERIUS-22
>                 URL: https://issues.apache.org/jira/browse/IMPERIUS-22
>             Project: Imperius
>          Issue Type: Bug
>            Reporter: David Wood
>            Assignee: Bill Stoddard
>
> The following does not parse.  Should it?
> Import Class java.util.List:list1;
> Strategy Execute_All_Applicable;
> Policy
> {
>                Condition
>                {
>                   inCollection("1", list1)
>                }
>                Decision
>                {
>                                list.get(1)
>                }
> }:1;
> However, it does parse if you change it to...
> Import Class java.util.List:list1;
> Strategy Execute_All_Applicable;
> Policy
> {
>                Condition
>                {
>                   inCollection("1",[ "1", "2" ])
>                }
>                Decision
>                {
>                                list.get(1)
>                }
> }:1;
> Should we be able to pass java List objects as collections?

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





Re: [jira] Commented: (IMPERIUS-22) Java List objects as collections not supported?

Posted by David Wood <da...@us.ibm.com>.
I don't believe this one was ever really fixed.  It's more  question of 
whether or not non-literal lists are allowed as arguments to the 
collection operators.

David Wood 
Policy Technologies Group
IBM TJ Watson Research Center
dawood@us.ibm.com
914-784-5123 (office), 914-396-6515 (mobile)




From:
"Neeraj Joshi (JIRA)" <ji...@apache.org>
To:
imperius-dev@incubator.apache.org
Date:
10/07/2009 03:32 PM
Subject:
[jira] Commented: (IMPERIUS-22) Java List objects as collections not 
supported?




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

Neeraj Joshi commented on IMPERIUS-22:
--------------------------------------

patch checked in by David Wood

> Java List objects as collections not supported?
> -----------------------------------------------
>
>                 Key: IMPERIUS-22
>                 URL: https://issues.apache.org/jira/browse/IMPERIUS-22
>             Project: Imperius
>          Issue Type: Bug
>            Reporter: David Wood
>            Assignee: Bill Stoddard
>
> The following does not parse.  Should it?
> Import Class java.util.List:list1;
> Strategy Execute_All_Applicable;
> Policy 
> {
>                Condition 
>                { 
>                   inCollection("1", list1)
>                }
>                Decision 
>                { 
>                                list.get(1)
>                }
> }:1;
> However, it does parse if you change it to...
> Import Class java.util.List:list1;
> Strategy Execute_All_Applicable;
> Policy 
> {
>                Condition 
>                { 
>                   inCollection("1",[ "1", "2" ])
>                }
>                Decision 
>                { 
>                                list.get(1)
>                }
> }:1;
> Should we be able to pass java List objects as collections?

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




Re: [jira] Created: (IMPERIUS-22) Java List objects as collections not supported?

Posted by Neeraj Joshi <jn...@us.ibm.com>.
Hey David,

That is correct. InCollection is a CIM-SPL operator so we had to stick to 
CIM-SPL primitives for it.

Thanks
Neeraj
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"The light at the end of the tunnel...may be you"

 
Neeraj Joshi
WebSphere XD - Compute Grid
AIM, IBM
Apache Imperius - http://incubator.apache.org/imperius
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



From:
Xiping Wang/Watson/IBM@IBMUS
To:
imperius-dev@incubator.apache.org
Date:
02/24/2009 08:49 AM
Subject:
Re: [jira] Created: (IMPERIUS-22) Java List objects as collections not 
supported?



David,

If you read 11.1 Basic Collection of CIM-SPL spec, you will know that the
following syntax is supported.

Xiping

Import Class java.util.List:list1;
Strategy Execute_All_Applicable;
Policy
{
             Condition
             {
                inCollection("1",[ "1", "2" ])
             }
             Decision
             {
                         list.get(1)
             }
}:1;


[jira] Commented: (IMPERIUS-22) Java List objects as collections not supported?

Posted by "Neeraj Joshi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IMPERIUS-22?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12763208#action_12763208 ] 

Neeraj Joshi commented on IMPERIUS-22:
--------------------------------------

patch checked in by David Wood

> Java List objects as collections not supported?
> -----------------------------------------------
>
>                 Key: IMPERIUS-22
>                 URL: https://issues.apache.org/jira/browse/IMPERIUS-22
>             Project: Imperius
>          Issue Type: Bug
>            Reporter: David Wood
>            Assignee: Bill Stoddard
>
> The following does not parse.  Should it?
> Import Class java.util.List:list1;
> Strategy Execute_All_Applicable;
> Policy 
> {
> 	Condition 
> 	{  
> 	   inCollection("1", list1)
> 	}
> 	Decision 
> 	{   
> 		list.get(1)
> 	}
> }:1;
> However, it does parse if you change it to...
> Import Class java.util.List:list1;
> Strategy Execute_All_Applicable;
> Policy 
> {
> 	Condition 
> 	{  
> 	   inCollection("1",[ "1", "2" ])
> 	}
> 	Decision 
> 	{   
> 		list.get(1)
> 	}
> }:1;
> Should we be able to pass java List objects as collections?

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


Re: [jira] Created: (IMPERIUS-22) Java List objects as collections not supported?

Posted by Xiping Wang <xi...@us.ibm.com>.
David,

If you read 11.1 Basic Collection of CIM-SPL spec, you will know that the
following syntax is supported.

Xiping

Import Class java.util.List:list1;
Strategy Execute_All_Applicable;
Policy
{
             Condition
             {
                inCollection("1",[ "1", "2" ])
             }
             Decision
             {
                         list.get(1)
             }
}:1;