new File(parent, child) when child is absolute

Weijun Wang weijun.wang at oracle.com
Sat Apr 27 03:14:58 UTC 2013


I thought that in this case parent is just ignored and it's still the 
child itself. Turns out this is not true, and

    new File("/tmp", "/etc/passwd") is /tmp/etc/passwd

Is this really useful in any way?

Thanks
Max



More information about the core-libs-dev mailing list