I am trying to instrument eclipse classes during runtime using a
In the hook, for each bundle's manifest I am setting the property
dynamicimport-package : '*'
however despite this, i am getting a classnotfoundexception.
The dynamicStamp() and TimeStamp() are used to cache results which allow the resolver to return quickly if "nothing has changed" since the last time an attempt was done to resolve a dynamic import package. One pretty hackish workaround would be to install a dummy bundle and keep updating it each time you change the dynamic import policy of a bundle from your class loading hook. This would force the state timestamp to change which then would invalidate the dyanamic import cache.
For the current release being developed (luna) I think this issue should be fixed. But keep in mind the equinox specific hooks have been significantly redone which will require anyone implementing equinox specific hooks to migrate to the new hooks in luna.