eclipse-jdt/eclipse.jdt.core

Problem arguments must be consistent

Open

#3,556 建立於 2025年1月14日

在 GitHub 查看
 (5 留言) (0 反應) (1 負責人)Java (183 fork)auto 404
good first issue

倉庫指標

Star
 (233 star)
PR 合併指標
 (PR 指標待抓取)

描述

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.

貢獻者指南