JDK 10 RFR of 8182710: File.listRoots() always returns the root of CD drive

Brian Burkhalter brian.burkhalter at oracle.com
Thu Jun 29 14:18:19 UTC 2017


Hi Roger,

On Jun 29, 2017, at 6:58 AM, Roger Riggs <Roger.Riggs at oracle.com> wrote:

> Pretty code; though the part about creating an array to create a BitSet is a bit non-obvious.
> 
> But how much garbage does it create and extra runtime doing all that fancy stuff.

Probably either of the second two versions I posted generates more than my original brute approach. Beaty at the expense of efficiency perhaps.

> Now if BitSet had a constructor from the bits in a long...

Could be an RFE …

Is this also a +1?

Thanks,

Brian


More information about the core-libs-dev mailing list