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

Lance Andersen lance.andersen at oracle.com
Fri Jun 26 14:34:35 UTC 2015


Hi Daniel,

This looks OK to me

Best
Lance
On Jun 26, 2015, at 6:45 AM, Daniel Fuchs <daniel.fuchs at oracle.com> 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



Lance Andersen| Principal Member of Technical Staff | +1.781.442.2037
Oracle Java Engineering 
1 Network Drive 
Burlington, MA 01803
Lance.Andersen at oracle.com






More information about the core-libs-dev mailing list