Works beautifully. Thank you sir.
On Oct 28, 10:40 pm, Alex Osborne <[email protected]> wrote:
> youngblood.carl wrote:
> > When I try and call createFile from clojure:
> > (.createFile path)
>
> > I get an exception that there is no field named createFile.
>
> If I remember correctly variable argument Java methods, which is what
> that "..." syntax means:
>
> abstract Path createFile(FileAttribute<?>... attrs) {}
>
> are actually just syntactic sugar for an array argument:
>
> abstract Path createFile(FileAttribute<?>[] attrs) {}
>
> so try:
>
> (.createFile path (make-array FileAttribute 0))
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---