[jboss-jira] [JBoss JIRA] (DROOLS-773) Can't load correct model class info when incrementally load kie jar
Hanbing Luo (JIRA)
issues at jboss.org
Mon Apr 27 03:19:52 EDT 2015
[ https://issues.jboss.org/browse/DROOLS-773?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hanbing Luo updated DROOLS-773:
-------------------------------
Description:
Can't load correct model class info when incrementally load kie jar. New created field/method in model class can't be used in rule although rule compile successfully in kie GUI.
I also did some investigation and looks like changed model class info is not correct in getTypeDeclarations.
if (kiePackage instanceof InternalKnowledgePackage) {
InternalKnowledgePackage ikp = (InternalKnowledgePackage) kiePackage;
Map<String,TypeDeclaration> modelsMap = ikp.getTypeDeclarations();
}
was:
Can't load correct model class info when incrementally load kie jar. New created field/method in model class can't be used in rule although rule compile successfully in kie GUI.
I also did some investigation and looks like changed model class info is not correct in getTypeDeclarations.
if (kiePackage instanceof InternalKnowledgePackage) {
InternalKnowledgePackage ikp = (InternalKnowledgePackage) kiePackage;
Map<String,TypeDeclaration> modelsMap = ikp.getTypeDeclarations();
}
> Can't load correct model class info when incrementally load kie jar
> -------------------------------------------------------------------
>
> Key: DROOLS-773
> URL: https://issues.jboss.org/browse/DROOLS-773
> Project: Drools
> Issue Type: Bug
> Affects Versions: 6.2.0.Final
> Environment: drools version: 6.2.0.Final
> -bash-4.1$ java -version
> java version "1.7.0_76"
> Java(TM) SE Runtime Environment (build 1.7.0_76-b13)
> Java HotSpot(TM) 64-Bit Server VM (build 24.76-b04, mixed mode)
> -bash-4.1$ lsb_release -a
> LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
> Distributor ID: CentOS
> Description: CentOS release 6.6 (Final)
> Release: 6.6
> Codename: Final
> Reporter: Hanbing Luo
> Assignee: Mark Proctor
>
> Can't load correct model class info when incrementally load kie jar. New created field/method in model class can't be used in rule although rule compile successfully in kie GUI.
> I also did some investigation and looks like changed model class info is not correct in getTypeDeclarations.
> if (kiePackage instanceof InternalKnowledgePackage) {
> InternalKnowledgePackage ikp = (InternalKnowledgePackage) kiePackage;
> Map<String,TypeDeclaration> modelsMap = ikp.getTypeDeclarations();
> }
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
More information about the jboss-jira
mailing list