Clojure

java method calls cannot omit varargs

Details

  • Type: Enhancement Enhancement
  • Status: Open Open
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: Backlog
  • Component/s: None
  • Labels:
    None

Description

From http://groups.google.com/group/clojure/browse_thread/thread/7d0d6cb32656a621

E.g., trying to call java.util.Collections.addAll(Collection c, T... elements)

user=> (Collections/addAll [] (object-array 0))
false
user=> (Collections/addAll [])
IllegalArgumentException No matching method: addAll  clojure.lang.Compiler$StaticMethodExpr.<init> (Compiler.java:1401)

The Method class provides an isVarArg() method, which could be used to inform the compiler to process things differently.

Activity

Alexander Taggart made changes -
Field Original Value New Value
Comment [ Patch on CLJ-445 fixes this as well. ]
Alexander Taggart made changes -
Attachment clj440-dep-clj445.patch [ 10171 ]
Alexander Taggart made changes -
Attachment clj440-dep-clj445.patch [ 10171 ]
Alexander Taggart made changes -
Attachment clj440-dep-clj-445.patch [ 10175 ]
Alexander Taggart made changes -
Attachment clj440-dep-clj-445.patch [ 10175 ]
Andy Fingerhut made changes -
Attachment fixbug445.diff [ 11640 ]
Andy Fingerhut made changes -
Attachment fixbug445.diff [ 11640 ]

People

  • Assignee:
    Unassigned
    Reporter:
    Anonymous
Vote (5)
Watch (6)

Dates

  • Created:
    Updated: