[jboss-jira] [JBoss JIRA] (DROOLS-249) Handle conflicts when using @position in declared types

Davide Sottara (JIRA) jira-events at lists.jboss.org
Thu Sep 5 02:55:03 EDT 2013


Davide Sottara created DROOLS-249:
-------------------------------------

             Summary: Handle conflicts when using @position in declared types
                 Key: DROOLS-249
                 URL: https://issues.jboss.org/browse/DROOLS-249
             Project: Drools
          Issue Type: Bug
      Security Level: Public (Everyone can see)
    Affects Versions: 6.0.0.CR2, 5.5.0.Final
            Reporter: Davide Sottara
            Assignee: Mark Proctor
            Priority: Minor
             Fix For: 5.5.1.Final,  6.0.0.CR3


declare A
 f : int @position(2)
 g : int @position(1)
end

declare B extends A
 h : int @position(3)
 i : int @position(2)
end

The resulting field order may not be deterministic because of
 - the clashes (2)
 - the missing pos (0)

this is dangerous when used with positional constraints

B( $x, $y, $z, $w ; )

Marked as minor because of the obvious workaround

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list