[jboss-jira] [JBoss JIRA] Resolved: (JBRULES-615) Declared imports should override the default java.lang.* imports

Edson Tirelli (JIRA) jira-events at jboss.com
Wed Jan 24 08:36:52 EST 2007


     [ http://jira.jboss.com/jira/browse/JBRULES-615?page=all ]

Edson Tirelli resolved JBRULES-615.
-----------------------------------

    Fix Version/s: 3.1-m1
       Resolution: Done

Problem fixed in trunk and in 3.0.x branch.

Now, import's will override java.lang.* classes when resolving class names.

Thank you for reporting and let me know if you find any other problem.



> Declared imports should override the default java.lang.* imports
> ----------------------------------------------------------------
>
>                 Key: JBRULES-615
>                 URL: http://jira.jboss.com/jira/browse/JBRULES-615
>             Project: JBoss Rules
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 3.0.5
>         Environment: MS Windows XP SP2
>            Reporter: Michael Anstis
>         Assigned To: Edson Tirelli
>            Priority: Minor
>             Fix For: 3.0.6, 3.1-m1
>
>
> The use of a java.lang.* Class in the LHS of a rule causes Exception in thread "XXX" java.lang.Error: Unable to find unambiguously defined class 'XXX' errors when rules are loaded for parsing. Workaround is to use fully qualified Class name in LHS. For example:-
> package some.rules
> import a.package.name.Process
> rule "A rule"
>     when
>         p:Process( )
>     then
>         System.out.println(p.toString());
> end
> JIRA raised at the request of Mark Proctor:-
> From: rules-users-bounces at lists.jboss.org
> [mailto:rules-users-bounces at lists.jboss.org] On Behalf Of Mark Proctor
> Sent: 20 January 2007 13:50
> To: Rules Users List
> Subject: Re: [rules-users] Exception in thread "main" java.lang.Error:
> Unableto find unambiguously defined class
> Actually this is also a bug, if you declare something as an import, it 
> should override the default java.lang.* imports - can you open a JIRA 
> for this bug.
> Thanks
> Mark

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list