[jboss-jira] [JBoss JIRA] (DROOLS-253) Importing a domain class named "Exception" raises an ambiguity exception during RHS compilation

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


Davide Sottara created DROOLS-253:
-------------------------------------

             Summary: Importing a domain class named "Exception" raises an ambiguity exception during RHS compilation
                 Key: DROOLS-253
                 URL: https://issues.jboss.org/browse/DROOLS-253
             Project: Drools
          Issue Type: Bug
      Security Level: Public (Everyone can see)
    Affects Versions:  6.0.0.CR3, 5.5.0.Final
            Reporter: Davide Sottara
            Assignee: Mark Proctor
            Priority: Blocker
             Fix For: 5.5.1.Final,  6.0.0.CR4


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

--
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