Ângelo,
I added some debug output and I think I found the problem but have no solution yet...
Activator.getDefault().log("IEOSQLGeneratorFactory object class : " + o.getClass().getName());
for (Class anInterface : o.getClass().getInterfaces()) {
Activator.getDefault().log("interface : " + anInterface.getName());
}
Activator.getDefault().log("IEOSQLGeneratorFactory object class Loader : " + o.getClass().getClassLoader())
Activator.getDefault().log("IEOSQLGeneratorFactory class Loader : " + IEOSQLGeneratorFactory.class.getClassLoader());
The output:
!MESSAGE IEOSQLGeneratorFactory object class : org.objectstyle.wolips.eomodeler.core.sql.EOFSQLGeneratorFactory
!MESSAGE interface : org.objectstyle.wolips.eomodeler.core.sql.IEOSQLGeneratorFactory
!MESSAGE IEOSQLGeneratorFactory object class Loader : org.eclipse.osgi.internal.loader.EquinoxClassLoader@289c2793[org.objectstyle.wolips.eomodeler.eclipse:4.4.20150506.01(id=1470)]
!MESSAGE IEOSQLGeneratorFactory class Loader : org.eclipse.osgi.internal.loader.EquinoxClassLoader@2dcbf825[org.objectstyle.wolips.eomodeler.core:4.4.20150506.01(id=1469)]
So these are 2 different class objects from 2 class loader for the same class.
Anyone know how to fix this ?
Samuel