-
Bug
-
Resolution: Done
-
Major
-
8.33.0.Final
-
None
-
2023 Week 03-05 (from Jan 16)
-
2
-
NEW
-
NEW
This works:
Function<Job, Duration> f = (Job job) -> (Duration) job.getDuration(); UniConstraintCollector<Job, ?, Duration> max = ConstraintCollectors.max(f);
This doesn't compile:
Function<Job, LocalDateTime> f = (Job job) -> (LocalDateTime) job.getEndDateTime(); UniConstraintCollector<Job, ?, LocalDateTime> max = ConstraintCollectors.max(f);
See:
https://kie.zulipchat.com/#narrow/stream/232679-optaplanner/topic/Collectors.2Emax.28.29.20generics