Skip to content

Commit

Permalink
unbox to gen checkCast on non-primitive returns
Browse files Browse the repository at this point in the history
  • Loading branch information
richhickey committed Jul 30, 2009
1 parent c734754 commit 3c15d0e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/jvm/clojure/lang/Compiler.java
Expand Up @@ -5075,7 +5075,7 @@ public void emit(ObjExpr obj, ClassVisitor cv){
{
gen.pop();
}
else if(retClass.isPrimitive())
else
gen.unbox(retType);
}

Expand Down Expand Up @@ -5133,4 +5133,11 @@ public void emitUnboxed(C context, ObjExpr objx, GeneratorAdapter gen){
throw new RuntimeException("Can't emit");
}
}

static void gatherMethods(Class c, Map mm, Set considered){
for(;c != null;c = c.getSuperclass())
{

}
}
}

0 comments on commit 3c15d0e

Please sign in to comment.