[jboss-jira] [JBoss JIRA] Commented: (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:47:17 EST 2010


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

Geoffrey De Smet commented on JBRULES-2849:
-------------------------------------------

Here's a small program to prove it:

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * @author Geoffrey De Smet
 */
public class MySandbox {

    public static void main(String[] args) {
        System.out.println("java = " + System.getProperty("java.version"));
        Pattern kp = Pattern.compile("(?<=\\W|^)-\\s*\\s+(.*?)\\s+is\\s+(.*?)$");
        Matcher m = kp.matcher("- type1 is ClientServiceType.TypeGOLD");
        System.out.println("find = " + m.find(0));
    }

}


Output on JDK 5:
java = 1.5.0_22
find = false

Output on JDK 6:
java = 1.6.0_22
find = true

> 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