<br><div class="gmail_quote"><br>Just wanted to pass it on was trying to track down what was causing parse error . <br>Here is test case . I tried to bisect but couldn't get it to compile on every revision. Most likely my set up . <br>
<br>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. <br>
<br>public void testParseSlashStarInString() {<br><br> String str = "";<br> str += "package org.drools \n";<br> str += "import org.drools.Cheese \n";<br> str += "dialect \"mvel\"\n";<br>
str += "rule rule1 \n";<br> str += " when \n";<br> str += " $c : Cheese() \n";<br> str += " \n";<br> str += " then \n";<br> str += " Cheese hold= new Cheese(\"/*\",5);\n";<br>
str += "end\n";<br><br><br> final KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();<br> kbuilder.add(ResourceFactory.newByteArrayResource(str.getBytes()), ResourceType.DRL);<br>
StringBuffer stringBuffer = new StringBuffer();<br> for (KnowledgeBuilderError e : kbuilder.getErrors()) {<br> stringBuffer.append(e.toString());<br> }<br> Assert.assertEquals(stringBuffer.toString(), 0, kbuilder.getErrors().size());<br>
)<span class="HOEnZb"><font color="#888888"><br clear="all"><br></font></span></div>-- <br>Sincerely,<br><br>Benjamin Bennett<br>314.246.0645<br><a href="mailto:benbennett@gmail.com" target="_blank">benbennett@gmail.com</a><br>
<br>"For a successful technology, reality must take precedence over public relations, for Nature cannot be fooled."<br>Richard Feynman<br>