Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-dev] How to load classes using other ClassLoader than the default EclipseClassLoader?

I use ant to sign a jar file (JarSigner). Classes in this jar need to be checked
with signers' info after loaded for security purpose.

However, the Class.getSigners() always returns null in plugin runtime env where

the classLoader is EclipseClassLoader; while it works fine in a standalone java
application (test Application) with the same jar file--the ClassLoader is
Launcher$AppClassLoader in this case.

More details can be found in the bug report:


https://bugs.eclipse.org/bugs/show_bug.cgi?id=115719

Since the bug fix&release might take a long time, is there any way to bypass this EclipseClassLoader limitation?

Back to the top