Just wanted to pass it on was trying to track down what was causing parse error .
Here is test case . I tried to bisect but couldn't get it to compile on every revision. Most likely my set up .
But here is test case that is broken sometime after 5.3.0.CR1 . Please don't flame me if this is the wrong channel to send this too.
public void testParseSlashStarInString() {
String str = "";
str += "package org.drools \n";
str += "import org.drools.Cheese \n";
str += "dialect \"mvel\"\n";
str += "rule rule1 \n";
str += " when \n";
str += " $c : Cheese() \n";
str += " \n";
str += " then \n";
str += " Cheese hold= new Cheese(\"/*\",5);\n";
str += "end\n";
final KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
kbuilder.add(ResourceFactory.newByteArrayResource(str.getBytes()), ResourceType.DRL);
StringBuffer stringBuffer = new StringBuffer();
for (KnowledgeBuilderError e : kbuilder.getErrors()) {
stringBuffer.append(e.toString());
}
Assert.assertEquals(stringBuffer.toString(), 0, kbuilder.getErrors().size());
)
--
Sincerely,
Benjamin Bennett
314.246.0645
benbennett@gmail.com
"For a successful technology, reality must take precedence over public relations, for Nature cannot be fooled."
Richard Feynman