Skip to content

Commit

Permalink
check for static field in classname/fieldname
Browse files Browse the repository at this point in the history
  • Loading branch information
richhickey committed Dec 12, 2008
1 parent 175669e commit e2b6e9c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/jvm/clojure/lang/Compiler.java
Expand Up @@ -4199,7 +4199,8 @@ private static Expr analyzeSymbol(Symbol sym) throws Exception{
Class c = HostExpr.maybeClass(nsSym, false);
if(c != null)
{
return new StaticFieldExpr((Integer) LINE.get(), c, sym.name);
if(Reflector.getField(c,sym.name,true)!= null)
return new StaticFieldExpr((Integer) LINE.get(), c, sym.name);
}
}
}
Expand Down

0 comments on commit e2b6e9c

Please sign in to comment.