On Sat, 7 Mar 2026 00:46:58 GMT, Alex Menkov <[email protected]> wrote:
> 1-liner to add missed space between text and exception message.
> I think the fix is not worthy reg.test and would like to push it as a trivial
> change
Marked as reviewed by cjplummer (Reviewer).
src/jdk.jdi/share/classes/com/sun/tools/example/debug/expr/LValue.java line 76:
> 74: } catch (InvalidTypeException exc) {
> 75: throw new ParseException(
> 76: "Attempt to set value of incorrect type " +
Even with this fix the exception output does not read well:
com.sun.tools.example.debug.expr.ParseException: Attempt to set value of
incorrect type com.sun.jdi.InvalidTypeException: Can't set an inline type to
null
There should be some sort of delemeter after "type". The real issue here is
that ParseException does not have a constructor that takes a `cause` argument,
so it seems to be the policy of any code that throws this exception to just
essentially add exc.toString() after the main exception message. I guess since
this is the way it is done everywhere, there's no point in changing it for just
this one case.
-------------
PR Review: https://git.openjdk.org/jdk/pull/30126#pullrequestreview-3907214332
PR Review Comment: https://git.openjdk.org/jdk/pull/30126#discussion_r2898867513