You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apparently the checkClojure task loads the clojure namespaces and all imported classes with it when building.
Ignoring that loading random classes at build time seems quite weird/unexpected, this does not work in my case because I'm integrating with some Java code that requires certain initializers to be run before other classes are loaded. Can I disable or otherwise circumvent this (and still use aotAll())?
Edit: disabling checkClojure by setting namespaces to the empty set reveals that compileClojure also loads the classes. Because I kind of need compilation I don't know if there is any way around this issue. Maybe there is some way I can call the required initialization before classes are loaded?
I found this issue. Whats interesting is that classes shouldn't be initialized by importing them with this being fixed, so I guess the class loading is happening due to my functions accessing static fields of a class?
Seems I can run initialization code conditionally using *compile-files*, which isn't great but works fine so far.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Apparently the
checkClojure
task loads the clojure namespaces and all imported classes with it when building.Ignoring that loading random classes at build time seems quite weird/unexpected, this does not work in my case because I'm integrating with some Java code that requires certain initializers to be run before other classes are loaded. Can I disable or otherwise circumvent this (and still use
aotAll()
)?Edit: disabling
checkClojure
by settingnamespaces
to the empty set reveals thatcompileClojure
also loads the classes. Because I kind of need compilation I don't know if there is any way around this issue. Maybe there is some way I can call the required initialization before classes are loaded?I found this issue. Whats interesting is that classes shouldn't be initialized by importing them with this being fixed, so I guess the class loading is happening due to my functions accessing static fields of a class?
Seems I can run initialization code conditionally using
*compile-files*
, which isn't great but works fine so far.Beta Was this translation helpful? Give feedback.
All reactions