Clojure

java method calls cannot omit varargs

Details

  • Type: Enhancement Enhancement
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
  • Approval:
    Triaged

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 ]
Alex Miller made changes -
Fix Version/s Backlog [ 10035 ]
Alex Miller made changes -
Approval Triaged [ 10120 ]
Priority Blocker [ 1 ]
Reporter Alexander Taggart [ ataggart ]
Alex Miller made changes -
Priority Blocker [ 1 ] Major [ 3 ]
Alex Miller made changes -
Labels interop

People

Vote (6)
Watch (7)

Dates

  • Created:
    Updated: