VRL-Studio / VRL

Visual Reflection Library
http://vrl.mihosoft.eu
29 stars 18 forks source link

Console App Feature does not work for classes that rely on Singletons #33

Closed miho closed 10 years ago

miho commented 10 years ago

Exported console apps do not correctly use the plugin loading mechanism. Different classloaders are used to load the same class (plugin classloader and system classloader). Therefore, it may happen that singletons exist twice.

miho commented 10 years ago

The issue has been fixed by adding the plugin classloaders to the classloader hierarchy. All project classes are loaded by a custom classloader (regardless whether they already are in the system cp) to ensure that they have access to the external plugin classloaders. Plugin classes are now only loaded once.