<< Back to previous view

[CLJCLR-2] (System.Environment.SpecialFolder/Personal) ;Return: CompilerException System.InvalidOperationException: Unable to find static field: Personal Created: 28/Feb/12  Updated: 06/Mar/13  Resolved: 06/Mar/13

Status: Resolved
Project: ClojureCLR
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Defect Priority: Major
Reporter: Alex Woods Assignee: David Miller
Resolution: Declined Votes: 0
Labels: .net4.0, 1.3, Clojure-clr, System.Environment.SpecialFolder/Personal
Environment:

Clojure-clr 1.3 .net 4.0



 Description   

(import [System.Environment.SpecialFolder]) ;return nil
(SpecialFolder/Personal)
;return CompilerException System.InvalidOperationException: Unable to find static field: Personal in clojure.lang.Compiler.AnalyzeSymbol(Symbol symbol) d:\work\clojure-clr\Clojure\Clojure\Cljcompiler\Compiler.cs: line 1518,compiling: (NO_SOURCE_PATH:15)



 Comments   
Comment by David Miller [ 06/Mar/13 10:03 PM ]

SpecialFolder is a nested class of Environment. The actual name is System.Environment+SpecialFolder:

user=> (import '[System Environment+SpecialFolder])
System.Environment+SpecialFolder
user=>
user=>
user=> Environment+SpecialFolder/Desktop
Desktop

It would be nice to have a way to provide an alias, but that's not in Clojure's namespace semantics at the moment.

Generated at Thu Oct 30 09:55:34 CDT 2014 using JIRA 4.4#649-r158309.