Cool! So this was just a syntax issue.
Xiping
From: "Neeraj Joshi (JIRA)" <[email protected]>
To: [email protected]
Date: 10/07/2009 03:48 PM
Subject: [jira] Commented: (IMPERIUS-29) Policy importing multiple
instances of same class can not be evaluated (Java)
[
https://issues.apache.org/jira/browse/IMPERIUS-29?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12763219#action_12763219
]
Neeraj Joshi commented on IMPERIUS-29:
--------------------------------------
To import multiple instances of the same class you should use a syntax as
follows:
Import Class java.util.Map:props1,props2;
> 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.