loadClass method about com.hof.util.BinaryClassLoader

Toshimitsu Murakami shared this question 5 years ago
Answered

Hi Team,


One partner who makes plugin asked us about com.hof.util.BinaryClassLoader#loadClass.

Is there the setting which throws ClassNotFoundException or changes the class loader?

Generally, ClassLoader#loadClass return ClassNotFoundException when a specified class doesn't exist class which is matched. However, BinaryClassLoader#loadClass return null in the same situation.

Is there any restriction on this class?

ex) The plugin.jar which is stored DB is unarchived other name on tmp directory. -> the name is changed as resorceURL. -> an external library can't find it. -> we can't use it.


I'm sorry to bother you.

Best Regards,

Toshi

Leave a Comment
 
Attach a file