RFR: 8302791: Add specific ClassLoader object to Proxy IllegalArgumentException message
Ravali Yatham
duke at openjdk.org
Tue Feb 21 23:33:32 UTC 2023
On Sun, 19 Feb 2023 16:12:39 GMT, liach <duke at openjdk.org> wrote:
>> Added specific class loader object to proxy IllegalArgumentException from which the class was not visible
>>
>> The bug report for the same: https://bugs.openjdk.org/browse/JDK-8302791
>
> src/java.base/share/classes/java/lang/reflect/Proxy.java line 881:
>
>> 879: if (type != c) {
>> 880: throw new IllegalArgumentException(c.getName() +
>> 881: " referenced from a method is not visible from class loader: " + ld.toString());
>
> Isn't the `.toString()` call redundant in string concatenation?
Thanks @liach for reviewing, Fixed this.
-------------
PR: https://git.openjdk.org/jdk/pull/12641
More information about the core-libs-dev
mailing list