<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
The Janino team said they wouldn't fix it?<br>
Paul Smith wrote:
<blockquote
 cite="mid:b80f74940701151733q65c161d3med4652d5cfc8c41b@mail.gmail.com"
 type="cite">I queried this issue some months back and the response
back then was that it couldn't be fixed and that we shouldn't use '$'
in the rule files. I suggested back then that the example doco should
be updated to reflect this.
  <br>
  <br>
  <div><span class="gmail_quote">On 1/16/07, <b
 class="gmail_sendername">Mark Proctor</b> &lt;<a moz-do-not-send="true"
 href="mailto:mproctor@codehaus.org">mproctor@codehaus.org</a>&gt;
wrote:</span>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Bree,<br>
    <br>
Feel free to log it in JIRA for JBoss Rules, however we cannot fix this<br>
. You will need to also log a&nbsp;&nbsp;bug&nbsp;&nbsp;in the Janino JIRA for it to be<br>
fixed there. My suggestion is to also prove that this doesn't work with
    <br>
a standalone Janino use.<br>
    <br>
Mark<br>
Bree wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; I searched the Jboss-rules Jira and didn't find this issue
documented yet,<br>
&gt; though I may have missed it.<br>
&gt;<br>
&gt; Essentially it appears that any rule using the U.S. Dollar
character ($) in the<br>
&gt; rule name fails when compiled with Janino. I was able to reproduce
the issue<br>
&gt; using the "default" new JBoss-rules project wizard in Eclipse.<br>
&gt;<br>
&gt; The stack trace follows, though it may not be much help. I tried
tracking it
    <br>
&gt; down and it looks like the problem is actually caused in the
parse/compilation<br>
&gt; step (i.e. builder.addPackageFromDrl( source );). After this step
the rule in<br>
&gt; question has a null "consequence", which causes the
    <br>
&gt; "AbstractRuleBase.addRule(...)" method to fail when it does the
isValid() check.<br>
&gt;<br>
&gt; &lt;code&gt;<br>
&gt; java.lang.IllegalArgumentException: The rule called Show me da $
is not valid.<br>
&gt; Check for compile errors reported.
    <br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.drools.common.AbstractRuleBase.addRule(Unknown Source)<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.drools.reteoo.ReteooRuleBase.addRule(Unknown Source)<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.drools.common.AbstractRuleBase.addPackage(Unknown
Source)
    <br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.sample.DroolsTest.readRule(DroolsTest.java:89)<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.sample.DroolsTest.main(DroolsTest.java:29)<br>
&gt; &lt;/code&gt;<br>
&gt;<br>
&gt; Please let me know if you require additional information and/or if
you'd like me
    <br>
&gt; to log this in the Jira.<br>
&gt;<br>
&gt; Thanks,<br>
&gt;<br>
&gt; Bree<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; rules-users mailing list<br>
&gt; <a moz-do-not-send="true"
 href="mailto:rules-users@lists.jboss.org">
rules-users@lists.jboss.org</a><br>
&gt; <a moz-do-not-send="true"
 href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;<br>
&gt;<br>
    <br>
_______________________________________________
    <br>
rules-users mailing list<br>
    <a moz-do-not-send="true" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
    <a moz-do-not-send="true"
 href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users
    </a><br>
  </blockquote>
  </div>
  <br>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
  </pre>
</blockquote>
<br>
</body>
</html>