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

Add explanation for "Generics return type resolution" in migration guide #5931

Open
tkobayas opened this issue May 13, 2024 · 0 comments
Open
Assignees

Comments

@tkobayas
Copy link
Contributor

Add more explanation to https://docs.drools.org/latest/drools-docs/drools/migration-guide/index.html#_generics_return_type_resolution

A) Vehicle.getMotor() is defined to return TEngine. Drools can get that TEngine is bound to Engine class, but Engine doesn't have property "adBlueRequired". Hence results in the error. "#" is syntax to specify the sub class.

B) DieselCar.getEngine() is defined to return DieselEngine. So the rule can access "adBlueRequired".

exec-model generates java codes from rules (for faster KiePackage/KieBase build), so those static class information is crucial while non-exec-model can resolve the value at rule execution time.

@tkobayas tkobayas self-assigned this May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant