redplanetlabs / proxy-plus

A replacement for Clojure's proxy that's 10x faster and more usable
Apache License 2.0
175 stars 10 forks source link

Remove Class/forName used in proxy+ #12

Closed atdixon closed 3 years ago

atdixon commented 3 years ago

Using Class/forName in the .importClass call in proxy+ is not necessary, as the class is already loaded by its definition (define-class). The Class/forName usage causes problems when proxy+ is AOT'd as the root classloader attempts to load the proxy class, which is only available/defined in a child DynamicClassLoader.