ClojureCLR

Invoking parameterless static method with "new" modifier does not work

Details

  • Type: Defect Defect
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    Clojure CLR 1.5.0

Description

Calling a parameterless static method that has no parameters does not work. Here's how to reproduce:

user=> (import System.Security.Cryptography.MD5)
System.Security.Cryptography.MD5
user=> (MD5/Create)
CompilerException System.MissingMemberException: Member 'MD5.Create' not found.
   at clojure.lang.CljCompiler.Ast.HostExpr.Parser.Parse(ParserContext pcon, Object form) in d:\work
\clojure-clr\Clojure\Clojure\CljCompiler\Ast\HostExpr.cs:line 48
   at clojure.lang.Compiler.AnalyzeSeq(ParserContext pcon, ISeq form, String name) in d:\work\clojur
e-clr\Clojure\Clojure\CljCompiler\Compiler.cs:line 1763, compiling: (NO_SOURCE_PATH:2:1)

Here's some discussion about the topic in the Clojure CLR Google group: https://groups.google.com/forum/#!topic/clojure-clr/qY_Tlk4OYog

Activity

Hide
David Miller added a comment -

Fixed in commit 885b317, 2014.06.21

Show
David Miller added a comment - Fixed in commit 885b317, 2014.06.21

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: