[jboss-jira] [JBoss JIRA] (DROOLS-434) Ambiguous type declarations are resolved incorrectly when using import star

Davide Sottara (JIRA) issues at jboss.org
Mon Feb 17 13:13:47 EST 2014


Davide Sottara created DROOLS-434:
-------------------------------------

             Summary: Ambiguous type declarations are resolved incorrectly when using import star
                 Key: DROOLS-434
                 URL: https://issues.jboss.org/browse/DROOLS-434
             Project: Drools
          Issue Type: Bug
      Security Level: Public (Everyone can see)
    Affects Versions: 6.0.1.Final, 6.0.0.Final, 5.6.0.Final, 5.5.0.Final
            Reporter: Davide Sottara
            Assignee: Mark Proctor


The following snippet fails when an incremental compilation is attempted:
{code}
package domestic;
import foreign.*;
declare foreign.Score id : String end
declare Score value : double end
{code}

Since the second "Score" has no qualified name, it is tentatively set to domestic.Score (as desirable).
However, if foreign.Score exists (e.g. as a class, or because of an incremental compilation), even the second declaration will be interpreted as a (re)declaration of that class. 
The PB will then complain because of the "duplicate" declaration.

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