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

Cannot declare an inner class type when the type is used in a rule

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 5.5.1.Final
    • 5.5.0.Final, 6.0.0.Beta2
    • None
    • None

      Local class names of (public static) inner classes are not resolved uniformly when looking up type declarations during the pattern compilation process
      That is:

      class Bar { public static class Foo {} }
      declare Foo @role(event) end
      rule X when Foo() then end

      the "declared" type is resolved as Bar.Foo in package com.sample, while the pattern looks for the declaration of Foo in the sampe package.
      (Notice that the fully qualified name is the same instead)

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

              Created:
              Updated:
              Resolved: