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

Importing a domain class named "Exception" raises an ambiguity exception during RHS compilation

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Blocker
    • 6.0.0.CR4
    • 5.5.0.Final, 6.0.0.CR3
    • None
    • None

    Description

      If a user class named Exception is used,

      import my.own.domain.Exception

      rule "Foo"
      when then end

      the RHS compilation process resolves "Exception" to that name
      rather than to java.lang.Exception

      >> Rule compilation error [Rule name=Foo] :

      {if import * is used }

      The type Exception is ambiguous

      {if explicit import is used }

      Exception is not Throwable

      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: