Kris,
I set the compiler compliance to 5.0, but the generated classes to 1.4. The
only catch is that I also have to set the Source compatibility to 1.4 as
well. Hence the error still occurs.
Ron
On 7/16/07, Kris Verlaenen <Kris.Verlaenen(a)cs.kuleuven.be> wrote:
Ronald,
Could you try not setting the compiler compliance level of your
eclipse project to 1.4 but leaving that to 5.0 and only setting the
source compatibility level and the generated .class files
compatibility to 1.4? The plugin needs a 5.0 compliant parser, but it
can generate 1.4 compliant class files. The errors in the rules
should then disappear.
Kris
Citeren "Ronald R. DiFrango" <ron.difrango(a)gmail.com>:
> 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
>