Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

Creates a local anonymous macro #579

Draft
wants to merge 8 commits into
base: master
Choose a base branch
from
Draft

Conversation

yloiseau
Copy link
Contributor

WIP

There is an issue with classloaders while running the test module from
java.
It works when run directly by golo.

Here I switch the current thread classloader. Works fine, but there
should be a better approach (thread local singleton for
`Runtime.classLoader()`.
Define a thread local variable to hold the current thread classloader.

When running from golo, the current thread classloader will be a
GoloClassLoader instance, so it is used as is.
The issue is that when running from Java, the current classloader is not
a golo one, so it was wrapped by `Runtime.classLoader()`. We
therefore got a different one for each call.
Keeping it in a thread local singleton resolve this issue.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant