eclipse-jdt / eclipse-jdt/eclipse.jdt.core

Problem arguments must be consistent

Open
#3,556 5 comments 0 reactions 1 assignee Claimed by @subyssurendran666 View on GitHub
good first issue
Dominant language
Java
Stars
237
Forks
195
Avg merge
1d 12h
Merged PRs (30d)
47

Description

Several methods in `ProblemReporter` pass inconsistent problem arguments to `handle(..)`
* one variant of problem arguments is passed as `NoArgument` or similar
* the other variant passes a non-empty array

This will blow up whenever the error message (containing placeholders `{0}` ...) should be rendered using `NoArgument`: will try to read `[0]` from the 0-length array => AIOOBE. One case was observed in the context in JSR 199, where each and every such occurrence can throw.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.