>Yes. The compiler probably optimized away the var lookup to an >embedded constant. You'll need to use an atom, as Baldridge suggested.
My code calls a function in 3rd party library A, which in turn calls a function in 3rd party library B. The lib B function uses blacklisted Java classes, causing my app to crash when lib A calls it. I would like to replace that function with a safe version, so that lib A is forced to use the safe version instead, all without modifying any 3rd party code. Is this possible? On Wed, Aug 10, 2011 at 5:08 PM, Ken Wesson <kwess...@gmail.com> wrote: > On Wed, Aug 10, 2011 at 4:54 PM, Mark Rathwell <mark.rathw...@gmail.com> > wrote: > >> alter-var-root > > It is still somehow using the original binding. I am trying change the > > binding from aot compiled code, would that change anything? > > Yes. The compiler probably optimized away the var lookup to an > embedded constant. You'll need to use an atom, as Baldridge suggested. > > -- > Protege: What is this seething mass of parentheses?! > Master: Your father's Lisp REPL. This is the language of a true > hacker. Not as clumsy or random as C++; a language for a more > civilized age. > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@googlegroups.com > Note that posts from new members are moderated - please be patient with > your first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en