-
Bug
-
Resolution: Done
-
Major
-
7.12.0.GA, 7.12.1.GA
Build of rules like (*1) fails with a message "_this cannot be resolved" like (*2) during compiling a generated executable model.
(*1)
rule "Rule 1" when Fact( price : price, lowerLimitPrice : lowerLimitPrice, $discountRate : 0.5, lowerLimitPrice > price * $discountRate ) then System.out.println("The price is below the lower limit of the discount"); end
(*2)
[ERROR] Failed to execute goal org.kie:kie-maven-plugin:7.59.0.Final-redhat-00006:generateModel (default-generateModel) on project reproducer_thiscannotberesolved_1d: Execution default-generateModel of goal org.kie:kie-maven-plugin:7.59.0.Final-redhat-00006:generateModel failed: [com/example/reproducer/PA6/LambdaExtractorA6DD974ADC1CE36DF3AB11A399D39A58.java (21:759) : _this cannot be resolved] -> [Help 1]
- incorporates
-
DROOLS-7017 "_this cannot be resolved" in LambdaExtractor when involving a declaration in pattern
- Resolved