[jboss-jira] [JBoss JIRA] Commented: (JBRULES-2787) Accept hexadecimal values in rule LHS
Uli Bubenheimer (JIRA)
jira-events at lists.jboss.org
Fri Nov 12 11:12:36 EST 2010
[ https://jira.jboss.org/browse/JBRULES-2787?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12563129#comment-12563129 ]
Uli Bubenheimer commented on JBRULES-2787:
------------------------------------------
Making the hex value a return value restriction (parenthesized expression) seems an easy workaround:
Value ( tag == (0x00080060) )
> Accept hexadecimal values in rule LHS
> -------------------------------------
>
> Key: JBRULES-2787
> URL: https://jira.jboss.org/browse/JBRULES-2787
> Project: Drools
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: drools-compiler (expert), drools-docs-expert, drools-eclipse (expert), drools-guvnor
> Affects Versions: 5.1.1.FINAL
> Reporter: Uli Bubenheimer
> Assignee: Mark Proctor
>
> It is not possible to use a hexadecimal value in the LHS of a rule.
> The manual says: "All standard Java numeric primitives are supported." As hexadecimal values are standard Java numeric primitives, this could be considered not just a new feature, but a bug (documentation bug at least).
> I found this issue first mentioned in the referenced user forum post from 2006; sadly, the poster did not create a JIRA issue as suggested, or at least I could not find one.
> Example:
> rule "bla"
> when
> Value( tag == 0x00080060 ) // ERROR!
> then
> //something
> end
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list