8248165: Missing whitespace in jdb message printed when setting value of invalid type

Reviewed-by: cjplummer
This commit is contained in:
Alex Menkov 2026-03-10 18:07:41 +00:00
parent d3158e71c6
commit 46b93a0aea

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1998, 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1998, 2026, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -73,11 +73,11 @@ abstract class LValue {
setValue0(value);
} catch (InvalidTypeException exc) {
throw new ParseException(
"Attempt to set value of incorrect type" +
"Attempt to set value of incorrect type: " +
exc);
} catch (ClassNotLoadedException exc) {
throw new ParseException(
"Attempt to set value before " + exc.className() + " was loaded" +
"Attempt to set value before " + exc.className() + " was loaded: " +
exc);
}
}