[
https://issues.jboss.org/browse/JBRULES-2849?page=com.atlassian.jira.plug...
]
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...
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...
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira