Clone Tools
  • last updated a few minutes ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
[RHDM-1020] Error while beta joining short and integer fields (#2459)

* 4207-1

* 4207-2

* Fix compilation

  1. … 11 more files in changeset.
[DROOLS-4175] Error in compiling BigLiteral binding as literal (#2444)

  1. … 2 more files in changeset.
[DROOLS-4207] Error while beta joining short and integer fields (#2419)

* Avoid casting numeric expressions while using equality helper

* Reproducer (still not the same error)

* Always use helper method for number comparison

* Null check for uncast, to be removed

* Always use helper for equality, this time for real

* Renamed

* Also box other comparisons

* Add overloads to allow compiler to emit valid code

* Fix QueryTest without types

* Fix negative test

* Removed TODO

* Added assert to test

  1. … 8 more files in changeset.
[DROOLS-4207] Error in executable model while joining fields with short and int (#2408)

* Three tests

* Better test without declared types

* Avoid casting nameExprs

* Use Number.class in indexedBy

* Removed test

* renamed test

  1. … 5 more files in changeset.
[DROOLS-4175] Error in compiling BigLiteral binding as literal (#2388)

* Two failing tests

* Avoid try to parse a String as a BigDecimal or BigInteger literal if it's a declaration

* Better fix

  1. … 2 more files in changeset.
[DROOLS-3850] fix generics in executable model test

  1. … 1 more file in changeset.
[DROOLS-3802] Build error with executable-model, nested property with double-bytes property name (#2302)

* testCapitalLetter

* Remove hack for enums

  1. … 2 more files in changeset.
[DROOLS-3800] Parser error with executable-model on Map literal expression in constraint (#2300)

* Test case for map initialization

* MVEL Map initialization literal test

* Parsing of map initialization literal

* Support MapLiteralInitialization as argument

* Return type of map

* testMapInitialization passing

* Convert name to field accessor

* new test for failing two properties

* Ignored two pattern test

* Added regression test

* Empty Map literal

* Renamed test

* Added JIRA URLs

  1. … 11 more files in changeset.
[DROOLS-3606] take count of alpha constraints in from node when calculating its own property reactivity mask

(cherry picked from commit 426130b76d7d460dcc61f5bd8dabc37f254be52d)

  1. … 3 more files in changeset.
[DROOLS-3606] take count of alpha constraints in from node when calculating its own property reactivity mask

  1. … 3 more files in changeset.
[DROOLS-2625] Better support for ArrayAccess Expression in Exec Model accumulate test (#2045)

* Better regexp match tests down to 26

* Disable accumulate tests

* New test for array access in AccumulateTest.java

* New test for array access

* Yet another new test for accumulate

* Parse element from arrayAccessExpr when it's a methodCallExpr

* First test of flattenScope

* Refactor test

* Flatten method call

* Unary expressions

* FlattenArrayAccess

* Fix testUseAccumulateFunctionWithArrayAccessOperation by supporting ArrayAccessExpression

* Support ArrayAccessExpr in AccumulateVisitor

* ArrayAccessExprWorking tests

* Expression Typer supports declarations with bindings

* First test of remove root node

* Removed println

* Converted arrayaccessexpr to methodcallexpr

* New FindRootViaNodeScope

* New remove node method

* Fix for method without scope

* Removed optional

* FIx regression of findRootNodeViaScope2Rec

* Rename

* Convert to methodCallExpr when using the accumulate

* Also coerce expressions on the right

* Support CastExpr in findLeftLeafOfMethod

* New test in FlowTest

* Fix ExpressionTyperTest.java

* Revert "Also coerce expressions on the right"

This reverts commit 5a42614

* Better test

* Removed test

* Moved unsupported test

* Regression test

* Fix regression

(cherry picked from commit 3fc8a354b7e0e176e11ee346d48e369c4f8ff522)

  1. … 12 more files in changeset.
[DROOLS-2625] Better support for ArrayAccess Expression in Exec Model accumulate test (#2045)

* Better regexp match tests down to 26

* Disable accumulate tests

* New test for array access in AccumulateTest.java

* New test for array access

* Yet another new test for accumulate

* Parse element from arrayAccessExpr when it's a methodCallExpr

* First test of flattenScope

* Refactor test

* Flatten method call

* Unary expressions

* FlattenArrayAccess

* Fix testUseAccumulateFunctionWithArrayAccessOperation by supporting ArrayAccessExpression

* Support ArrayAccessExpr in AccumulateVisitor

* ArrayAccessExprWorking tests

* Expression Typer supports declarations with bindings

* First test of remove root node

* Removed println

* Converted arrayaccessexpr to methodcallexpr

* New FindRootViaNodeScope

* New remove node method

* Fix for method without scope

* Removed optional

* FIx regression of findRootNodeViaScope2Rec

* Rename

* Convert to methodCallExpr when using the accumulate

* Also coerce expressions on the right

* Support CastExpr in findLeftLeafOfMethod

* New test in FlowTest

* Fix ExpressionTyperTest.java

* Revert "Also coerce expressions on the right"

This reverts commit 5a42614

* Better test

* Removed test

* Moved unsupported test

* Regression test

* Fix regression

  1. … 12 more files in changeset.
[DROOLS-2634] allow to use also fields and globals in temporal expressions

(cherry picked from commit 1c3dc46b73abff05d1143b5f8deb53cff87f2e82)

  1. … 19 more files in changeset.
[DROOLS-2634] allow to use also fields and globals in temporal expressions

  1. … 19 more files in changeset.
Alpha network compiler (#1989)

* Fixed delegates part

* added other two files

* Hardcoded paths

* Removed hardcoded paths

* Optimized import

* Added logging to ObjectTypeNodeCompiler.java

* Collapsed catch blocks

* AlphaNetworkCompilerEnabled property

* Null safe ConfCheck

* Modification test

* Test with modify

* Test with modify 2

* Use configuration

* Propagate tuple without using sinks

* Alpha network compiler tests in Canonical Model

* Parametrization of modify object

* Tests with model compiler

* ObjectTypeNodeCompilerTest.java with executable model

* Using test only in Model Compiler

* Fix testAlphaConstraintWithModification

* Refactor

* Enable model compiler code log

* Use IndexableConstraint instead of ClassReader

* Extracted map name

* Remove fieldname from startHashedAlphaNodes

* Pass ReadAccessor in the constructor

* use reader in AssertHandler

* No more classFieldReader downcasts

* Temporary remove configuration

* Fix tests by passing the read accessor in every case

* Entry key are always strings

* Removed useless code

* Generation of new switch with hardcoded values

* Avoid using switch if it's not a string or an int

* Renamed tests

* Correctly quote value

* New test for Enum

* Removed duplication from AssertHandler.java and ModifyHandler.java

* Run all tests with alpha network

* Disabled tests

* Avoid generating createContextEntry (it seems like it's not used)

* Remove new lines in comments

* Flow with Alpha Network

* drools-test-coverage with alphaNetworkCompiler

* Use alphaNetworkConfiguration

* Access inner class with . instead of $

* always enabled alphaNetwork

* Parametrization

* First draft of null handling

* Use null in Map instead of NullObject

* Removed null object

* NullObject is not useful for switch statements

* Revert "NullObject is not useful for switch statements"

This reverts commit 1dfcaee

* Better quoting

* Null safe alpha node inlining

* Better construction of test

* Use id in name files in order to avoid clashes

* First draft of windowNode handling

* Support setting of WindowNodes

* Removed println

* Flag to enable alphaNetworkCompiler

* Support traversal of CompositePartitionAwareObjectSinkAdapter

* Always on alpha compiler

* Enable alpha network compiler on new tests

* Avoid creating a new CanonicalKieModule (therefore breaking alpha network compiler)

* Updated timeout for failing tests

* NodeHashingTest

* Need to regenerate compiled alpha network after update to new version in incremental compilation

* Fix compilation

* Fix compilation alpha network

* Avoid regenerating alpha network classes if alpha network compiler is disabled

* Avoid creating a new KieModule when it's not necessary

* Also run alpha network on other integration tests

* Also run alpha network on other integration tests

* getKieBuilderFromKieFileSystem shouldn't write the xml

* Generate random class name to avoid clash with incremental compilation

* Avoid clear null classes

* New test for indexing on unswitchable constraint

* Added a new test for the switchable case without the inlining

* Disable logging of exec model

* Flag to enable alphaNetwork testing

* also parametrize integration tests

* Removed typesafe configuration

* Removed useless parameter

* Removed implementation

* Reformat

* Remove commented code

* Remove commented code

* disable logging

* Disabled logging

* Disabled logging

* Quite a bit of space after ifs here

* Update KieBaseUpdater.java

* Update KieContainerImpl.java

* Update ObjectTypeNodeCompiler.java

* Update ObjectTypeNodeParser.java

* Update SwitchCompilerHandler.java

* Update ObjectTypeNodeParser.java

* Update KieBaseUpdater.java

* Update BaseModelTest.java

  1. … 34 more files in changeset.
[DROOLS-2625] Support reverse in exec model's accumulator (#1976)

* Support reverse

* If not present in the reverse map take it from the memory

  1. … 1 more file in changeset.
[DROOLS-2390][DROOLS-2536] Move incremental compilation tests to sepa… (#1914)

[DROOLS-2390][DROOLS-2536] Move incremental compilation tests to separate module + fix incremental compilation with executable model

  1. … 224 more files in changeset.
[DROOLS-2551][DROOLS-2575] various fixes in executable model generation

  1. … 173 more files in changeset.
[DROOLS-2551] Fix EvalRewrite test (#1913)

* Ported test

* Separated test with cast

* Support also access to map that are properties of objects

* Support arbitrary nesting in custom operators

  1. … 6 more files in changeset.
[DROOLS-2550] Coerce between BigDecimal and BigInteger (#1900)

* Coerce between BigDecimal and BigInteger

* Renamed test

  1. … 4 more files in changeset.
Support null comparison in executable model's alpha nodes (#1876)

[DROOLS-2507] Support null comparison in executable model's alpha nodes

(cherry picked from commit 17154e3d1ccfc20e332f432d3827cf683054dd81)

  1. … 2 more files in changeset.
Support null comparison in executable model's alpha nodes (#1876)

[DROOLS-2507] Support null comparison in executable model's alpha nodes

  1. … 2 more files in changeset.
[DROOLS-2466] avoid static import of dsl methods in generated executable model

  1. … 38 more files in changeset.
[DROOLS-2466] avoid static import of dsl methods in generated executable model

(cherry picked from commit 331195dc4bd0525e59805fad5a5bebd8b65adc05)

  1. … 38 more files in changeset.
[DROOLS-2284] fix for expr dsl in executable model

  1. … 2 more files in changeset.
[DROOLS-2284] coerce right part of binary expressions when necessary + support predicates and consequences throwing checked exceptions in executable model

  1. … 31 more files in changeset.
[DROOLS-2284] minor fixes to executable model generation

    • -0
    • +24
    ./InterfaceAsEnum.java
  1. … 5 more files in changeset.
Obfuscated client's code in ComplexRulesTests (#1808)

* Create a domain model for complex rule model test

* Create a domain model for complex rule model test

* Hack to handle binding with one and two variables with accumulate

* Model - add a test with a complex rule with not with an eval

* Fix eval in Flow Evaluation

* Revert "Hack to handle binding with one and two variables with accumulate"

This reverts commit f2407b3

* Ignored failing tests

    • -0
    • +68
    ./ChildFactComplex.java
    • -0
    • +42
    ./ChildFactWithEnum1.java
    • -0
    • +42
    ./ChildFactWithEnum2.java
    • -0
    • +42
    ./ChildFactWithEnum3.java
    • -0
    • +56
    ./ChildFactWithFirings1.java
    • -0
    • +36
    ./ChildFactWithId1.java
    • -0
    • +36
    ./ChildFactWithId2.java
    • -0
    • +36
    ./ChildFactWithId3.java
    • -0
    • +43
    ./ChildFactWithObject.java
  1. … 2 more files in changeset.
fix dsl generation for or patterns in executable model

  1. … 22 more files in changeset.
fix binding of accumulate as source of its own pattern when building from the executable model

  1. … 2 more files in changeset.