简体   繁体   English

Jboss流口水5.4.0.JDK 7最终版

[英]Jboss drools 5.4.0.Final with JDK 7

Trying to write a consequence of a rule which uses diamond operator. 尝试编写使用菱形运算符的规则的结果。 Getting the following error message. 获取以下错误消息。 java.version system property is set to 1.7 and JavaDialectConfiguration class gets the language level as 1.7, still why drools is not able to compile diamond operator? java.version系统属性设置为1.7,而JavaDialectConfiguration类将语言级别设置为1.7,为什么drools不能编译Diamond运算符?

Incorrect number of arguments for type HashMap<K,V>; it cannot be parameterized with arguments <?>

Sample Rule : 样本规则:

package rule.test;
import java.util.Map;
import java.util.HashMap;

dialect "java"

rule "Test jdk 7"
when
then
Map<String, String> params= new HashMap<>();
end

drools compiler maven artifact of 5.4.0.Final or 5.5.0.Final are pulling 3.5.1 version of eclipse core compiler. Drools编译器5.4.0.Final或5.5.0.Final的Maven工件正在拉3.5.1版本的eclipse核心编译器。

<groupId>org.eclipse.jdt.core.compiler</groupId>
<artifactId>ecj</artifactId>
<version>3.5.1</version>

When I put latest version of JDT compiler into my pom, the issue gets resolved. 当我将最新版本的JDT编译器放入pom时,该问题得到解决。

<dependency>
<groupId>org.eclipse.jdt.core.compiler</groupId>
<artifactId>ecj</artifactId>
<version>4.2.2</version>
<scope>runtime</scope>
</dependency>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM