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.
Mark
Ronald R. DiFrango wrote:
Mark,
Just curious as to why the IDE treats functions as static imports?
Ron
On 7/9/07, *Ronald R. DiFrango* < [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
Mark,
I would be happy to help. The short answer is that, I need my
entire project - Java classes and all in JDK 1.4 format. 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. It does not look like I can mix and
match the two of them.
I guess my alternative would be to create an ANT script that
generated the 1.4 JAR file. BTW..it does run just fine and like a
champ!
Ron
On 7/9/07, * Mark Proctor* <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
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?
Mark
Ronald R. DiFrango wrote:
All,
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:
Severity and Description Path Resource Location
Creation Time Id
Syntax error, static imports are only available if source
level is 5.0
RtvDecisionEngine/src/rules/com/circuitcity/rtvcrms/rules
modelDiscrepancyRules.drl line 20 1184006663382 77860
On all rules.
Thoughts?
Ron
------------------------------------------------------------------------
_______________________________________________
rules-users mailing list
[email protected] <mailto:[email protected]>
https://lists.jboss.org/mailman/listinfo/rules-users
<https://lists.jboss.org/mailman/listinfo/rules-users>
_______________________________________________
rules-users mailing list
[email protected] <mailto:[email protected]>
https://lists.jboss.org/mailman/listinfo/rules-users
------------------------------------------------------------------------
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users