Add varargs to Path::resolve?

David Alayachew davidalayachew at gmail.com
Tue Jun 3 07:38:58 UTC 2025


Heh, I forgot that my Javadoc was set to 21. Thank you for the correction.

On Mon, Jun 2, 2025, 11:58 PM Jaikiran Pai <jai.forums2013 at gmail.com> wrote:

> Hello David,
>
> On 03/06/25 5:17 am, David Alayachew wrote:
> > ...
> >
> > I would much prefer to just use varargs, and list them all up front,
> > as opposed to having to call resolve over and over.
> >
> > rootPath.resolve("src", "main", "java");
> >
> This is already possible since Java 22
>
> https://docs.oracle.com/en/java/javase/24/docs/api/java.base/java/nio/file/Path.html#resolve(java.lang.String,java.lang.String..
> .)
>
> -Jaikiran
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/core-libs-dev/attachments/20250603/af5c5479/attachment.htm>


More information about the core-libs-dev mailing list