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

RH Bugzilla Integration (JIRA) jira-events at lists.jboss.org
Fri Sep 20 08:43:03 EDT 2013


     [ https://issues.jboss.org/browse/DROOLS-253?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

RH Bugzilla Integration updated DROOLS-253:
-------------------------------------------

        Bugzilla Update: Perform
    Bugzilla References: https://bugzilla.redhat.com/show_bug.cgi?id=1010281

    
> 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: 5.5.0.Final,  6.0.0.CR3
>            Reporter: Davide Sottara
>            Assignee: Mario Fusco
>            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