technomancy/leiningen — Issue #295: :clean-non-project-files true disables [Clojure] proxies
Author: S11001001
Created: 2011-10-16 21:45:11+00:00
State: open

If you compile this

```clojure
(ns x.y.z)

(defn something []
(proxy [Object] []
(toString [] "hi there!")))
```

You get a bunch of class files in `classes/x/y/`, but also in `classes/x/y/proxy$java/lang/`.

The former encodes an expectation of the latter to be there, causing a `ClassNotFoundException` when trying to use a proxy.

The issue is illustrated by test changes, and fixed, in [my clean-compile-with-proxy branch](https://github.com/S11001001/leiningen/commits/clean-compile-with-proxy).