-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
class loading behaviour #403
Comments
What exactly do you mean? What series of snippets do you compare? I don't need exact libraries, just the way you're using |
The use case is:
I guess difficult to pinpoint with this description. I have a workarounds, so not urgent. And if I have some time, will try to investigate a bit more. |
I see. Actually calling dependencies("x:y:z") will generate code |
Ahh, If I put the following two statements in a single notebook input cell, it causes the issue of the second statement not being able to resolve a dependency on the first one:
But if I put the same two statements in their own separate input cells (and thus forcing the first one to become the parent class loader of the second one), it works fine. Seems a workable solution for me, so I will close this issue if ok. |
Yes, you're right. And one unobvious thing here: |
There is a difference in class loading behaviour using
@file:DependsOn("...")
or usingdependencies(....)
in the Integration class.When using the
dependencies(....)
approach, the loaded classes cannot access other classes loaded using@file:DependsOn
. Seems like@file:DependsOn
anddependencies(....)
use different class loaders?The text was updated successfully, but these errors were encountered: