Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-249

Handle conflicts when using @position in declared types

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • 5.5.1.Final, 6.0.0.Final
    • 5.5.0.Final, 6.0.0.CR2
    • None
    • None

    Description

      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

      Attachments

        Activity

          People

            mfusco@redhat.com Mario Fusco
            dsotty Davide Sottara (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: