Why haven't the *Attributes interfaces been "decorated" with default methods in Java 8?

Alan Bateman Alan.Bateman at oracle.com
Mon Nov 30 19:12:32 UTC 2015


On 30/11/2015 17:34, Francis Galiegue wrote:
> :
>
> Since default methods in interfaces are backwards compatible with
> older versions of Java, why hasn't this been done? Is this an
> oversight?
>
There are many opportunities to use default methods, it just needs 
someone to get around to it. In this case then the default methods 
mostly just reduce code for those developing custom file system 
providers. Brian Burkhalter has added default paths to Path as that 
helped to remove some code.

-Alan


More information about the nio-dev mailing list