-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[new-parser] ctx.lhsPattern().size() == 0 #5915
Comments
|
I confirm that.
are not the best examples as they test correct DRL sources and fail due to parser issues. Once we fix the parser grammar, the visitor will be able to traverse the contexts smoothly. However, the other failing tests are good examples because they test invalid or incomplete DRL sources that do not have a completely parsed LHS. The visitor must be resilient to that and must not throw an exception. |
Fixed by #5922 |
Parent issue
Failing tests
org.drools.mvel.integrationtests.AnnotationsTest#testAnnotationOnLHSAndMerging
lhsOr
andlhsAnd
#5918org.drools.compiler.integrationtests.drl.DRLTest#testWithInvalidRule2
org.drools.mvel.compiler.lang.DRLIncompleteCodeTest#testIncompleteCode2
org.drools.mvel.compiler.lang.DRLIncompleteCodeTest#testIncompleteCode12
org.drools.mvel.integrationtests.ExtendsTest#testExtendsBasic
from return
#5917Rule code snippet
Generally, the issue is that DRLVisitorImpl doesn't accept 0 size lhsPattern(). But each test may have its own issue (e.g. AnnotationsTest seems to have an annotation parsing issue)
Error output
The text was updated successfully, but these errors were encountered: