You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kie.apache.org by "sharad-zee (via GitHub)" <gi...@apache.org> on 2026/05/05 05:44:53 UTC
[I] [Drools 10.2.0] UnsupportedOperationException in DummyConstraintBuilder during compilation on Java 25 [incubator-kie-issues]
sharad-zee opened a new issue, #2293:
URL: https://github.com/apache/incubator-kie-issues/issues/2293
## 🐛 Bug: Drools 10.2.0 fails to compile minimal rule on Java 25
### Description
Drools **10.2.0** fails to compile even minimal rules when running on **Java 25**.
The compiler throws an `UnsupportedOperationException` in `DummyConstraintBuilder.setExprInputs`.
Downgrading to **Drools 10.1.0** resolves the issue, indicating a regression in 10.2.0.
---
### Expected Behavior
A minimal DRL rule should compile successfully using `KieBuilder.buildAll()`.
---
### Actual Behavior
Compilation fails with an `UnsupportedOperationException`.
---
### Environment
- **Drools Version:** 10.2.0 (Regression from 10.1.0)
- **Java Version:** 25
- **OS:** macOS (Darwin)
---
### Steps to Reproduce
1. Create a minimal DRL file:
```drl
package rules
rule "Minimal Rule"
when
String()
then
end
```
Compile using the following Java code:
```java
KieServices kieServices = KieServices.Factory.get();
KieFileSystem kieFileSystem = kieServices.newKieFileSystem();
kieFileSystem.write("src/main/resources/rules/test.drl", drlContent);
KieBuilder kieBuilder = kieServices.newKieBuilder(kieFileSystem);
kieBuilder.buildAll(); // Crashes here
```
Stack Trace
```
java.lang.UnsupportedOperationException
at org.drools.compiler.rule.builder.ConstraintBuilder$DummyConstraintBuilder.setExprInputs(ConstraintBuilder.java:210)
at org.drools.compiler.rule.builder.PatternBuilder.getExprBindings(PatternBuilder.java:1123)
at org.drools.compiler.rule.builder.PatternBuilder.buildRelationalExpression(PatternBuilder.java:1108)
at org.drools.compiler.rule.builder.PatternBuilder.buildExpression(PatternBuilder.java:986)
...
```
### Additional Context
Issue does not occur on Drools 10.1.0
Appears to be a regression introduced in 10.2.0
Reproducible with a minimal rule (no constraints)
Possible Root Cause (Speculative)
The failure occurs in DummyConstraintBuilder.setExprInputs, which may indicate an incompatibility with Java 25 or a regression in constraint handling logic.
### Workaround
Downgrade to Drools 10.1.0, where the issue does not occur.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org
Re: [I] [Drools 10.2.0] UnsupportedOperationException in DummyConstraintBuilder during compilation on Java 25 [incubator-kie-issues]
Posted by "yesamer (via GitHub)" <gi...@apache.org>.
yesamer commented on issue #2293:
URL: https://github.com/apache/incubator-kie-issues/issues/2293#issuecomment-4959687301
Closing - No feedback provided. Please reopen in case of new information.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org
Re: [I] [Drools 10.2.0] UnsupportedOperationException in DummyConstraintBuilder during compilation on Java 25 [incubator-kie-issues]
Posted by "tkobayas (via GitHub)" <gi...@apache.org>.
tkobayas commented on issue #2293:
URL: https://github.com/apache/incubator-kie-issues/issues/2293#issuecomment-4394385800
Hi @sharad-zee ,
While "Apache KIE doesn't support Java 25 yet" is true, `UnsupportedOperationException` in `DummyConstraintBuilder` looks to be caused by a dependency issue (missing `drools-engine-classic` or `drools-mvel`) rather than Java version.
I created a project with your code, https://github.com/tkobayas/shared-examples/tree/main/Ex-basic-drl-10.2 , and confirmed that it runs successfully with Java 25 (Temurin-25.0.3+9, Fedora 42).
Please attach a reproducer (simple maven project to reproduce the issue), so we can have a closer look. Thanks.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org
Re: [I] [Drools 10.2.0] UnsupportedOperationException in DummyConstraintBuilder during compilation on Java 25 [incubator-kie-issues]
Posted by "yesamer (via GitHub)" <gi...@apache.org>.
yesamer commented on issue #2293:
URL: https://github.com/apache/incubator-kie-issues/issues/2293#issuecomment-4377012133
HI @sharad-zee, Apache KIE doesn't support Java 25, suggested JDK are 17 and 21. Thank you for reporting, I would ask @tkobayas and @Rikkola to doublecheck in any case. JDK 25 support should be implemented later this year.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org
Re: [I] [Drools 10.2.0] UnsupportedOperationException in DummyConstraintBuilder during compilation on Java 25 [incubator-kie-issues]
Posted by "sharad-zee (via GitHub)" <gi...@apache.org>.
sharad-zee commented on issue #2293:
URL: https://github.com/apache/incubator-kie-issues/issues/2293#issuecomment-4390178908
Its working properly with 10.1.0, will continue using same for now.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org
Re: [I] [Drools 10.2.0] UnsupportedOperationException in DummyConstraintBuilder during compilation on Java 25 [incubator-kie-issues]
Posted by "yesamer (via GitHub)" <gi...@apache.org>.
yesamer closed issue #2293: [Drools 10.2.0] UnsupportedOperationException in DummyConstraintBuilder during compilation on Java 25
URL: https://github.com/apache/incubator-kie-issues/issues/2293
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org