Bug 545605 - Adjust ecj to change in JVMS 4.7.18./19. #2628
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
fixes #2625
With this change we implement the following sentence present in JVMS 4.7.18./19. since version 9:
This, however, would leave us guessing, which parameters are annotated by that partial array.
Original use case:
As I did not want to enter the realm of reading between the lines of a use case that is given as "For example", I did not implement any further heuristics to correlate annotations to parameters. I will leave this to be sorted out by a future spec version.
I did, however, add a flag that would allow to print the original error message before this change.
Should anybody suspect that the correlation between parameters and their annotations goes astray define a system property
jdt.reject.parameterAnnotations.countMismatch=true
and recompile.