Bug 1010281 - Importing a domain class named "Exception" raises an ambiguity exception during RHS compilation
Summary: Importing a domain class named "Exception" raises an ambiguity exception duri...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss BRMS Platform 6
Classification: Retired
Component: BRE
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ER4
: 6.0.0
Assignee: Mario Fusco
QA Contact: Tomas Schlosser
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-20 12:41 UTC by Mario Fusco
Modified: 2014-08-06 20:20 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-08-06 20:20:18 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker DROOLS-253 0 Blocker Resolved Importing a domain class named "Exception" raises an ambiguity exception during RHS compilation 2013-10-17 15:48:37 UTC

Description Mario Fusco 2013-09-20 12:41:05 UTC
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

Comment 1 Mario Fusco 2013-09-20 12:46:22 UTC
Fixed by https://github.com/droolsjbpm/drools/commit/2fe546dbd

Comment 2 JBoss JIRA Server 2013-09-20 12:47:34 UTC
Mario Fusco <mario.fusco> updated the status of jira DROOLS-253 to Resolved

Comment 4 Tomas Schlosser 2013-10-17 15:48:25 UTC
Verified in BRMS 6.0.0.ER4.


Note You need to log in before you can comment on or make changes to this bug.