[jboss-jira] [JBoss JIRA] (JBRULES-3268) Support for varargs needed
Mario Fusco (JIRA)
jira-events at lists.jboss.org
Mon Apr 2 10:52:47 EDT 2012
[ https://issues.jboss.org/browse/JBRULES-3268?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mario Fusco resolved JBRULES-3268.
----------------------------------
Fix Version/s: 5.3.2.Final
5.4.0.CR1
Resolution: Done
> Support for varargs needed
> --------------------------
>
> Key: JBRULES-3268
> URL: https://issues.jboss.org/browse/JBRULES-3268
> Project: Drools
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: drools-core
> Affects Versions: 5.3.0.Final
> Reporter: Martin A
> Assignee: Mario Fusco
> Priority: Minor
> Fix For: 5.3.2.Final, 5.4.0.CR1
>
>
> I have a method such as:
> /*
> * determines if any of the events passed as parameter has occurred
> */
> public boolean hasAnyEventOccurred(String... events) {
>
> for (String s : events) {
> if (hasEventOccurred(s)) {
> return true;
> }
> }
>
> return false;
> }
> However in rules I can't call it like that:
> hasAnyEventOccurred("event1", "event2", "event3"), I have to workaround as so: hasAnyEventOccurred(new String[] {"event1", "event2", "event3"})
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list