[JAVA-2936] Aggregates#lookup method uses wrong generic type parameter for Variable Created: 21/Aug/18 Updated: 28/Oct/23 Resolved: 22/Aug/18 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | API, Builders |
| Affects Version/s: | None |
| Fix Version/s: | 3.9.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Jeffrey Yemin | Assignee: | Jeffrey Yemin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Backwards Compatibility: | Minor Change | ||||
| Description |
|
The current signature for one of the overloads of Aggregates#lookup is:
But the "let" parameter type is incorrect. Using a wildcard for the generic type of Variable effectively means that you can only pass a null list for this parameter. The method should instead be defined as
|
| Comments |
| Comment by Githook User [ 22/Aug/18 ] |
|
Author: {'name': 'Jeff Yemin', 'email': 'jeff.yemin@10gen.com', 'username': 'jyemin'}Message: The signature of the lookup method with a parameter for "let" is List<Variable<?>> it should be List<Variable<TExpression>> where TExpression is a method-level type parameter. Otherwise, the only |