<!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">
We generate functions as static methods on a class, and then import
those as static imports. Janino supports static imports and Eclipse can
support static imports while still having jdk1.4 bytecode compatability
- so we take advantage of that. Our next release will also be jdk1.5
only.<br>
<br>
Mark<br>
Ronald R. DiFrango wrote:
<blockquote
 cite="mid:eb33f140707161324i7128a260oc5761aeef8fea80e@mail.gmail.com"
 type="cite">Mark,<br>
  <br>
Just curious as to why the IDE treats functions as static imports?<br>
  <br>
Ron<br>
  <br>
  <div><span class="gmail_quote">On 7/9/07, <b class="gmail_sendername">Ronald
R. DiFrango</b> &lt;<a moz-do-not-send="true"
 href="mailto:ron.difrango@gmail.com">
ron.difrango@gmail.com</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;">Mark,<br>
    <br>
I would be happy to help.&nbsp; The short answer is that, I need my entire
project - Java classes and all in JDK 1.4 format.&nbsp; When I tried playing
with the settings in Eclipse it keeps telling me that either source or
class files that are generated must be at or above the other's level.&nbsp;
It does not look like I can mix and match the two of them.
    <br>
    <br>
I guess my alternative would be to create an ANT script that generated
the 1.4 JAR file.&nbsp; BTW..it does run just fine and like a champ!<br>
    <br>
Ron
    <div><span class="e" id="q_113ac99d478529bc_1"><br>
    <br>
    <div><span class="gmail_quote">On 7/9/07, <b
 class="gmail_sendername">
Mark Proctor</b> &lt;<a moz-do-not-send="true"
 href="mailto:mproctor@codehaus.org" target="_blank"
 onclick="return top.js.OpenExtLink(window,event,this)">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;">
      <div bgcolor="#ffffff" text="#000000">On M3? if you look at the
JavaDialect you should see that the source is
always set ti jdk1.5, can never go below that, but the target is 1.4 -
which should allow static imports in a jdk1.4 environment. The unit
tests for it are working, maybe you can look into debugging this one
for me?<br>
      <br>
Mark<br>
Ronald R. DiFrango wrote:
      <blockquote type="cite">
        <div><span>All,<br>
        <br>
I had to change the compiler setting from JDK 5.0 to JDK 1.4 and no all
of a sudden my DRL files give me the following error:<br>
        <br>
Severity and Description&nbsp;&nbsp;&nbsp; Path&nbsp;&nbsp;&nbsp; Resource&nbsp;&nbsp;&nbsp; Location&nbsp;&nbsp;&nbsp; Creation
Time&nbsp;&nbsp;&nbsp; Id <br>
Syntax error, static imports are only available if source level is
5.0&nbsp;&nbsp;&nbsp; RtvDecisionEngine/src/rules/com/circuitcity/rtvcrms/rules&nbsp;&nbsp;&nbsp;
modelDiscrepancyRules.drl&nbsp;&nbsp;&nbsp; line 20&nbsp;&nbsp;&nbsp; 1184006663382&nbsp;&nbsp;&nbsp; 77860<br>
        <br>
On all rules. <br>
        <br>
Thoughts?<br>
        <br>
Ron<br>
        <br>
        </span></div>
        <pre><hr size="4" width="90%">
_______________________________________________
rules-users mailing list
<a moz-do-not-send="true" href="mailto:rules-users@lists.jboss.org"
 target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

rules-users@lists.jboss.org</a>
<a moz-do-not-send="true"
 href="https://lists.jboss.org/mailman/listinfo/rules-users"
 target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">https://lists.jboss.org/mailman/listinfo/rules-users

</a>
  </pre>
      </blockquote>
      <br>
      </div>
      <br>
_______________________________________________<br>
rules-users mailing list<br>
      <a moz-do-not-send="true"
 href="mailto:rules-users@lists.jboss.org" target="_blank"
 onclick="return top.js.OpenExtLink(window,event,this)">rules-users@lists.jboss.org
      </a><br>
      <a moz-do-not-send="true"
 href="https://lists.jboss.org/mailman/listinfo/rules-users"
 target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
      <br>
    </blockquote>
    </div>
    <br>
    </span></div>
  </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>