The Bug, which has been reverted is https://bugs.eclipse.org/bugs/show_bug.cgi?id=473845

Thanks for your help, Tom.

Regards,

Simon


On 07.10.2015 19:53, Thomas Watson wrote:
What is the bug number where the revert happened and we can discuss the alternatives?

If you want to avoid lazy activation of the bundle then we have to avoid actually loading the class in the check. I think you may be able to try locating the .class resource instead of actually trying to load the class with the bundle class loader.

Tom





From: Simon Scholz <[email protected]>
To: [email protected]
Date: 10/07/2015 05:14 AM
Subject: [equinox-dev] Checking whether a class is available in the target platform
Sent by: [email protected]
------------------------------------------------------------------------



Hello,

we are currently facing problems, when trying to figure out if a class
is available in the target platform or not.
So in case certain bundles are removed from the target platform the E4
application model should be cleaned up accordingly, which means that
referenced model objects, should be removed from the E4 application
model, if the contributing bundle is not available any more.

Thomas Watson suggested this solution
https://bugs.eclipse.org/bugs/show_bug.cgi?id=445663#c4, which
unfortunately causes the bundles to load.
This is undesired and therefore this patch has been reverted:
https://git.eclipse.org/r/#/c/55249/9/bundles/org.eclipse.ui.ide.application/src/org/eclipse/ui/internal/ide/application/addons/ModelCleanupAddon.java

So is it somehow possible to figure out if a certain class is available,
when we have the Bundle-SymbolicName and the full qualified classname,
without activating/loading the bundle?

Thanks in advance and regards,

Simon

--
Trainer, Consultant and Developer

vogella GmbH
Haindaalwisch 17a, 22395 Hamburg
Amtsgericht Hamburg: HRB 127058
Geschäftsführer: Lars Vogel, Jennifer Nerlich de Vogel
USt-IdNr.: DE284122352
Tel (040) 78804360, Fax (032) 221739404, Email: [email protected], Web: http://www.vogella.com <http://www.vogella.com/>

_______________________________________________
equinox-dev mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/equinox-dev



_______________________________________________
equinox-dev mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/equinox-dev

--
Trainer, Consultant and Developer

vogella GmbH
Haindaalwisch 17a, 22395 Hamburg
Amtsgericht Hamburg: HRB 127058
Geschäftsführer: Lars Vogel, Jennifer Nerlich de Vogel
USt-IdNr.: DE284122352
Tel (040) 78804360, Fax (032) 221739404, Email: [email protected], Web: 
http://www.vogella.com

_______________________________________________
equinox-dev mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/equinox-dev

Reply via email to