Classloading Using Different Versions Of The Same Class : java.lang.LinkageError : attempted duplicate class definition for name
I have a working code that loads dynamically different Class Implementations with different Class Names. The class files are loaded into the in-memory database ( Apache Derby Db ), and classloader retrieve the .class file from the BLOB columns. What I want to do is, inserting the .class files as binary BLOB with version column and IS_ENABLED flags, then classloader will load the class for different versions on run-time. There will be db entries same amount of the compiled class versions and there will only one class with IS_ENABLED flag set to TRUE . Because that I try to load the same class