[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
Thu Oct 17 11:50:02 EDT 2013


    [ https://issues.jboss.org/browse/DROOLS-253?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12822955#comment-12822955 ] 

RH Bugzilla Integration commented on DROOLS-253:
------------------------------------------------

Tomas Schlosser <tschloss at redhat.com> made a comment on [bug 1010281|https://bugzilla.redhat.com/show_bug.cgi?id=1010281]

Verified in BRMS 6.0.0.ER4.
                
> 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:  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