RFR - 8129956: jaxp: CodeSource.getLocation() might return null

Daniel Fuchs daniel.fuchs at oracle.com
Sat Jun 27 12:13:28 UTC 2015


On 6/27/15 12:57 PM, Peter Levart wrote:
> Hi Daniel,
>
> Just a question. Would diamonds on anonymous instance creation 
> expressions work in these cases?
I tried it - it didn't work.
You would have to use a local variable for that.

cheers,

-- daniel
>
> Regards, Peter
>
> On 06/26/2015 12:45 PM, Daniel Fuchs wrote:
>> Hi,
>>
>> It was brought to my attention that CodeSource.getLocation()
>> might return null. The javadoc is not very clear on the subject,
>> leading me to believe it could not.
>>
>> Here is a trivial change (with some trivial additional cleanup)
>> that adds guards against null before calling
>> getLocation().toString();
>>
>> http://cr.openjdk.java.net/~dfuchs/webrev_8129956/webrev.00/
>>
>> best regards,
>>
>> -- daniel
>




More information about the core-libs-dev mailing list