Today, mirror uses the same classloader that was used to load it. It would be good to receive another classloader on constructor and use that classloader to get class instances. There are some simple workarounds for this issue (like using a classloader to reflect the class and then using mirror) but it will be much more pleasant to allow this control to mirror. Also, it's really simple to implement.
Today, mirror uses the same classloader that was used to load it. It would be good to receive another classloader on constructor and use that classloader to get class instances. There are some simple workarounds for this issue (like using a classloader to reflect the class and then using mirror) but it will be much more pleasant to allow this control to mirror. Also, it's really simple to implement.