[jboss-jira] [JBoss JIRA] Issue Comment Edited: (JBRULES-2849) DSLMappingEntryTest fails with Java 1.5 on hudson (but not in Java 1.6)

Geoffrey De Smet (JIRA) jira-events at lists.jboss.org
Fri Dec 24 08:32:17 EST 2010


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

Geoffrey De Smet edited comment on JBRULES-2849 at 12/24/10 8:31 AM:
---------------------------------------------------------------------

Problem is in org.drools.lang.dsl.DefaultExpander#expandLHS
(lines[i].equals( expanded[lastExpanded]) gives a different result in both JDK's.

Looking deeper, it's in
org.drools.lang.dsl.DefaultExpander#substitute
on this line:
            while( startPos < exp.length() && m.find( startPos ) ){

The m.find() method acts differently

      was (Author: ge0ffrey):
    Problem is in org.drools.lang.dsl.DefaultExpander#expandLHS
(lines[i].equals( expanded[lastExpanded]) gives a different result in both JDK's.
  
> DSLMappingEntryTest fails with Java 1.5 on hudson (but not in Java 1.6)
> -----------------------------------------------------------------------
>
>                 Key: JBRULES-2849
>                 URL: https://issues.jboss.org/browse/JBRULES-2849
>             Project: Drools
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: drools-compiler
>            Reporter: Geoffrey De Smet
>            Assignee: Geoffrey De Smet
>             Fix For: 5.2.0.M2
>
>
> with java 1.5 fails it on hudson:
> https://hudson.qa.jboss.com/hudson/view/Drools/job/drools/6242/testReport/org.drools.lang.dsl/DSLMappingEntryTest/testExpandWithDots/
> the next build, with java 1.6 does not fail it on hudson:
> https://hudson.qa.jboss.com/hudson/view/Drools/job/drools/6243/testReport/org.drools.lang.dsl/DSLMappingEntryTest/testExpandWithDots/

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list