[jboss-jira] [JBoss JIRA] Commented: (JBRULES-2778) Rule with timer( int: 1m 1m ( causes ArrayStoreException in PackageBuilder
Wolfgang Laun (JIRA)
jira-events at lists.jboss.org
Tue Nov 9 13:26:01 EST 2010
[ https://jira.jboss.org/browse/JBRULES-2778?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12562279#action_12562279 ]
Wolfgang Laun commented on JBRULES-2778:
----------------------------------------
The immediate cause for this problem appears to be the space after '(' and before "int" and other errors you might make in the timer definition:
timer(int: 1m 1m) is OK,
timer( int: 1m 1m) crashes.
timer(1m 1m) iworks like int: 1m 1m - This is NOT documented.
timer( 1m 1m) also works.
timer(1m 10s 1m) crashes, sam exception
timer(foo: 1m 1m) crashes, same exception.
timer(int 1m 1m) crashes, same exception.
> Rule with timer( int: 1m 1m ( causes ArrayStoreException in PackageBuilder
> --------------------------------------------------------------------------
>
> Key: JBRULES-2778
> URL: https://jira.jboss.org/browse/JBRULES-2778
> Project: Drools
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: drools-compiler
> Affects Versions: 5.1.1.FINAL
> Reporter: Wolfgang Laun
> Assignee: Mark Proctor
> Fix For: 5.2.0.M1
>
>
> A single rule in a DRL file:
> rule "minute ticker"
> timer( int: 1m 1m )
> when
> then
> System.out.println( "Tick" );
> end
> causes
> xception in thread "main" java.lang.ArrayStoreException
> at java.lang.System.arraycopy(Native Method)
> at java.util.ArrayList.toArray(ArrayList.java:328)
> at org.drools.compiler.PackageBuilder.getErrors(PackageBuilder.java:1274)
> at org.drools.builder.impl.KnowledgeBuilderImpl.getErrors(KnowledgeBuilderImpl.java:70)
> at event.Main.compilePackage(Main.java:72)
> at event.Main.main(Main.java:219)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list