Fork me on GitHub
#java
<
2021-12-25
>
Lukas Domagala01:12:28

I’m trying to get orchard’s find deps, or more specifically fn-deps https://github.com/clojure-emacs/orchard/blob/master/src/orchard/xref.clj to also work on lambdas. issue here: https://github.com/clojure-emacs/orchard/issues/51 The problem is that there seems to be no easy way to find all classes on the classpath and even if you do manage to do it, anything that get’s created at runtime won’t be there, at least with tools like classgraph. while digging in the clojure compiler produced jvm class files i noticed that theres actually everything needed in the bytecode already. So now I’m trying to get at the runtime generated bytecode, but there seem’s to be no way to do that, other than to overwrite the classloader and save the bytecode for later use. The other option might be using the java instrumentation api, but I think that’s not feasible from inside orchard, but might be an option for nrepl itself. Does anyone have any experience with any of this?

1