Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DROOLS-970] fix Date coercion when the constraint uses a declaration or an instance field #543

Merged
merged 1 commit into from
Nov 4, 2015

Conversation

mariofusco
Copy link
Contributor

No description provided.

return declaration.getValueType() == ValueType.DATE_TYPE;
}

if (pattern.getObjectType() instanceof FactTemplateObjectType) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we still support FactTemplates? I think we should clean up the code and remove all references to FactTemplates as we haven't supported this since the Drools 4 days I believe.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, leave the code as is for now, but we need to talk to Mark and clean up the code. I am sure there are problems with fact templates and I am not aware of anyone using them, so it is likely this is just code garbage now.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One reason we have not removed them, is I do believe there is a new for an abstracted type system in Drools, it's just type declarations need more work. I've left them in, as they expose a lot of the plumbing points, if we ever decide to re-investigate this work.

@etirelli
Copy link
Contributor

etirelli commented Nov 4, 2015

+1 to merge, looks good.

@mariofusco
Copy link
Contributor Author

@etirelli I think that we should also consider to cherry-pick this commit to 6.3.x not only because it fixes the bug reported here https://issues.jboss.org/browse/DROOLS-970 but, probably more important, because while investigating it I've found another way to alleviate the build time performance degradation reported here https://bugzilla.redhat.com/show_bug.cgi?id=1276311

After this fix I rerun the benchmark mentioned in this comment https://bugzilla.redhat.com/show_bug.cgi?id=1276311#c1 obtaining the following result:

747.449 ± 3.265 ms/op

@etirelli
Copy link
Contributor

etirelli commented Nov 4, 2015

@mariofusco ok, submit another PR targeting 6.3.x and linking to the performance issue.

@mariofusco mariofusco merged commit cc9a5ea into apache:master Nov 4, 2015
@mariofusco mariofusco deleted the d970 branch November 4, 2015 15:45
lucamolteni pushed a commit to lucamolteni/drools that referenced this pull request Oct 13, 2021
* jul-22-save-1 (#1)

* empty

* empty

* Remove remaining Java EE 8 spec JARs (#2)

Co-authored-by: Tiago Bento <1584568+tiagobento@users.noreply.github.com>
cimbalek pushed a commit to cimbalek/incubator-kie-drools that referenced this pull request Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants