RFR(L): 8218628: Add detailed message to NullPointerException describing what is null.

Roger Riggs Roger.Riggs at oracle.com
Fri Feb 8 15:51:42 UTC 2019


Hi Goetz,


On 02/08/2019 06:51 AM, Lindenmaier, Goetz wrote:
> ... 
>> though I think trying to produce signatures within the message is going
>> to be very awkward in the general case. The key part is the "method
>> NPE.b() ... returned from NPE.a()"
> Actually, I have left out code that changes the signatures to the
> Java source code wording. I already left that out in my former
> exception message contributions.  For example see the messages in
> jtreg/runtime/exceptionMsgs/IllegalAccessError/IllegalAccessErrorTest.java,
> they have the same bad format:
> "class test.Runner4 tried to access private method test.IllegalAccessErrorTest.iae4_m()V"
>
> I would like to fix them altogether in a follow-up, is that acceptable to
> you?
>   
>
Please no partial solutions, it all needs to be complete.

I'll take a look at it today.

Thanks, Roger




More information about the core-libs-dev mailing list