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

Reza Asadollahi commented on IMPERIUS-15:
-----------------------------------------

If multiple import statements for objects with the same class is not acceptable 
for imperius, the exceptiion must be thrown at policy compile time instead of 
evalution time. 
If there is no exception at compile time, there should be no exception at 
evalution time regarding the policy syntax. 

> Policy execution exception when exist anchor objects with the same class 
> -------------------------------------------------------------------------
>
>                 Key: IMPERIUS-15
>                 URL: https://issues.apache.org/jira/browse/IMPERIUS-15
>             Project: Imperius
>          Issue Type: Bug
>            Reporter: Reza Asadollahi
>            Assignee: Bill Stoddard
>         Attachments: SimpleBean.java, TwoObjectsPolicy.spl, 
> TwoObjectsPolicy.spl.txt
>
>
> When having two or more objects with the same java class in a SPL policy , 
> during the evalution the following exception happens:
> org.apache.imperius.spl.parser.exceptions.SPLException: Invalid instance Name 
> bean1
>       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:134)
>       at 
> org.apache.imperius.spl.parser.statements.impl.SPLPolicy.evaluate(SPLPolicy.java:362)
>       at 
> org.apache.imperius.spl.evaluator.impl.PolicyEvaluatorImpl.evaluatePolicy(PolicyEvaluatorImpl.java:118)
>       at 
> org.apache.imperius.spl.manager.impl.PolicyManagerImpl.evaluatePolicy(PolicyManagerImpl.java:209)
>       at 
> org.apache.imperius.javaspl.Java_SPLPolicyRuleProvider.executePolicy(Java_SPLPolicyRuleProvider.java:134)
>                      ...

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

Reply via email to