incubator-imperius-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Wood (JIRA)" <j...@apache.org>
Subject [jira] Updated: (IMPERIUS-29) Policy importing multiple instances of same class can not be evaluated (Java)
Date Wed, 19 Aug 2009 17:13:14 GMT

     [ https://issues.apache.org/jira/browse/IMPERIUS-29?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

David Wood updated IMPERIUS-29:
-------------------------------

    Description: 
If  you have a policy that does something like the following:

Import  Class java.util.Map:props1;
Import  Class java.util.Map:props2; 	

we get 

Exception in thread "main" org.apache.imperius.spl.parser.exceptions.SPLException: Invalid
instance Name props1
	at org.apache.imperius.spl.parser.compiler.symboltable.AnchorData.insertInstanceObject(AnchorData.java:131)
	at org.apache.imperius.spl.parser.compiler.symboltable.SPLSymbolTable._insertInstanceObject(SPLSymbolTable.java:546)
	at org.apache.imperius.spl.parser.compiler.symboltable.SPLSymbolTable.populateInstanceValuesForInstance(SPLSymbolTable.java:499)
	at org.apache.imperius.spl.parser.statements.impl.SPLPolicy._evaluatePolicies(SPLPolicy.java:138)
	at org.apache.imperius.spl.parser.statements.impl.SPLPolicy.evaluateForResults(SPLPolicy.java:374)

Problem goes away if  you change to the following

Import  Class java.util.Map:props1;
Import  Class java.util.Properties:props2; 

But a change like this is not always acceptable.


  was:
If  you have a policy that does something like the following:

Import  Class java.util.Map:props1;
Import  Class java.util.Map:props2; 	

we get 

	at org.apache.imperius.spl.parser.compiler.symboltable.AnchorData.insertInstanceObject(AnchorData.java:131)
	at org.apache.imperius.spl.parser.compiler.symboltable.SPLSymbolTable._insertInstanceObject(SPLSymbolTable.java:546)
	at org.apache.imperius.spl.parser.compiler.symboltable.SPLSymbolTable.populateInstanceValuesForInstance(SPLSymbolTable.java:499)
	at org.apache.imperius.spl.parser.statements.impl.SPLPolicy._evaluatePolicies(SPLPolicy.java:138)
	at org.apache.imperius.spl.parser.statements.impl.SPLPolicy.evaluateForResults(SPLPolicy.java:374)

Problem goes away if  you change to the following

Import  Class java.util.Map:props1;
Import  Class java.util.Properties:props2; 

But a change like this is not always acceptable.



> Policy importing multiple instances of same class can not be evaluated (Java)
> -----------------------------------------------------------------------------
>
>                 Key: IMPERIUS-29
>                 URL: https://issues.apache.org/jira/browse/IMPERIUS-29
>             Project: Imperius
>          Issue Type: Bug
>         Environment: Windows XP, Java 1.5
>            Reporter: David Wood
>            Assignee: Bill Stoddard
>         Attachments: Imperius29.java
>
>
> If  you have a policy that does something like the following:
> Import  Class java.util.Map:props1;
> Import  Class java.util.Map:props2; 	
> we get 
> Exception in thread "main" org.apache.imperius.spl.parser.exceptions.SPLException: Invalid
instance Name props1
> 	at org.apache.imperius.spl.parser.compiler.symboltable.AnchorData.insertInstanceObject(AnchorData.java:131)
> 	at org.apache.imperius.spl.parser.compiler.symboltable.SPLSymbolTable._insertInstanceObject(SPLSymbolTable.java:546)
> 	at org.apache.imperius.spl.parser.compiler.symboltable.SPLSymbolTable.populateInstanceValuesForInstance(SPLSymbolTable.java:499)
> 	at org.apache.imperius.spl.parser.statements.impl.SPLPolicy._evaluatePolicies(SPLPolicy.java:138)
> 	at org.apache.imperius.spl.parser.statements.impl.SPLPolicy.evaluateForResults(SPLPolicy.java:374)
> Problem goes away if  you change to the following
> Import  Class java.util.Map:props1;
> Import  Class java.util.Properties:props2; 
> But a change like this is not always acceptable.

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


Mime
View raw message