Skip to content

Conversation

@stephan-herrmann
Copy link
Contributor

Behavior change is due to the fix #4520.

Fixed by heuristically including / excluding capture bounds during copy

Fixes #4715

method within Collectors.partitioningBy method

heuristically include / exclude capture bounds during copy

Fixes eclipse-jdt#4715
@stephan-herrmann stephan-herrmann added this to the 4.39 M1 milestone Dec 28, 2025
@stephan-herrmann
Copy link
Contributor Author

This touches an area that may require a significant revamp as of #4635 (which involves fixing a blatant bug in ecj while at the same time compensating for insufficient specification).

For the current bug it would suffice to simply remove one line from #4520, but (incomplete) experiments in #4635 indicate that selectively including captured bounds on some call paths while excluding them in other situations gives better results.

@stephan-herrmann stephan-herrmann merged commit 33dd1ac into eclipse-jdt:master Dec 28, 2025
13 checks passed
@stephan-herrmann stephan-herrmann deleted the issue4715 branch December 28, 2025 22:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Eclipse 2025-12 regression]: Type inference issue in Collectors.toMap method within Collectors.partitioningBy method

1 participant