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

TypeDeclarations for Java classes used in Patterns are created in the wrong package

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • 5.5.1.Final, 6.0.0.Beta2
    • 5.5.0.Final, 6.0.0.Alpha9
    • None
    • None

      when a rule uses a java class in a pattern:

      package my.test;
      import org.drools.Cheese;
      rule R when Cheese() then end

      a TypeDeclaration for that class (e.g.Cheese) is created, but is assigned
      to the rule package ("my.test") rather than to the natural class package
      ("org.drools"). This prevents an efficient later lookup of the typeDeclaration
      using the class name as a key.

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

                Created:
                Updated:
                Resolved: