RFR: JDK-8279242: Reflection newInstance() error message when constructor has no access modifiers could use improvement
David Holmes
dholmes at openjdk.java.net
Tue Jan 25 03:54:35 UTC 2022
On Tue, 25 Jan 2022 02:42:45 GMT, Joe Darcy <darcy at openjdk.org> wrote:
> Making the exception message friendlier to users.
src/java.base/share/classes/jdk/internal/reflect/Reflection.java line 387:
> 385: msg += "a member of " + memberClass + memberSuffix +
> 386: (packageAccess ?
> 387: " package access" :
Suggestion: "with package access".
-------------
PR: https://git.openjdk.java.net/jdk/pull/7208
More information about the core-libs-dev
mailing list