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] Created: (IMPERIUS-27) Floating point parsing problem.
Date Thu, 02 Apr 2009 23:19:13 GMT
Floating point parsing problem.
-------------------------------

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


A floating point number that begins with a decimal (e.g., .6) is not parsed.

Import Class java.util.Properties:list1;
Strategy Execute_All_Applicable;
Policy
{
Condition
{
	1 == 1
}
Decision
{
	list1.put("foo", .6)
}
}:1; 

and gives the following exception:

dummy:11:26: unexpected token: .
dummy:11:26: unexpected token: .
dummy:11:26: expecting RPAREN, found '.'
dummy:11:27: expecting IDENT, found '6'
dummy:11:27: expecting RCURLY, found '6'
dummy:11:27: expecting RCURLY, found '6'
dummy:11:27: expecting SEMI, found '6'
Apr 2, 2009 7:15:05 PM org.apache.imperius.spl.datastore.impl.PolicyParserImpl parseFile
SEVERE: Error encountered while parsing PolicyString
Exception in thread "main" org.apache.imperius.spl.parser.exceptions.SPLException: Error encountered
while parsing PolicyString
	at org.apache.imperius.spl.datastore.impl.PolicyParserImpl.parseFile(PolicyParserImpl.java:166)
	at org.apache.imperius.spl.datastore.impl.PolicyParserImpl.createInternalPolicyObject(PolicyParserImpl.java:96)
	at com.ibm.watson.pml.spl.policy.SPLJavaParser.parse(SPLJavaParser.java:57)
	at com.ibm.watson.pml.PolicyParser.main(PolicyParser.java:67)


-- 
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