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

Rules class cannot accept Comparable #291

Closed
avakimov opened this issue Jun 7, 2020 · 1 comment
Closed

Rules class cannot accept Comparable #291

avakimov opened this issue Jun 7, 2020 · 1 comment
Labels
Milestone

Comments

@avakimov
Copy link

avakimov commented Jun 7, 2020

Hello
I've noticed that RuleProxy implementation calls compareTo if target has that method implemented. But it wouldn't work
I've added unit test to my easy-rules fork, to demonstrate this behaviour.
17f8bbb

@fmbenhassine
Copy link
Member

@avakimov Thank you for opening this issue! Indeed, there is an argument type mismatch when trying to register a proxy for a type implementing Comparable.

It should be fixed now in 4.1.0-SNAPSHOT. It would be appreciated if you give it a try and share your feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging a pull request may close this issue.

2 participants