Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 322774 - Supportability shell commands for class loading issues
Summary: Supportability shell commands for class loading issues
Status: CLOSED FIXED
Alias: None
Product: Virgo
Classification: RT
Component: unknown (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Steve Powell CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-16 06:20 EDT by Hristo Iliev CLA
Modified: 2010-10-22 07:11 EDT (History)
1 user (show)

See Also:


Attachments
Pach produced with GIT format-patch (48.84 KB, patch)
2010-08-16 06:21 EDT, Hristo Iliev CLA
zteve.powell: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Hristo Iliev CLA 2010-08-16 06:20:53 EDT
Build Identifier: 2.1.0.M03-incubation

Attached patch provides 3 shell commands for loading a class, finding an export and locating a class in a bundle.

The modifications I made are in osgicommand bundle to allow registration of the commands and kernel.test bundle for the integration tests.

Reproducible: Always

Steps to Reproduce:
1. Apply the patch
2. Update osgicommand bundle
3. 3 new shell commands starting with "cl" are registered
Comment 1 Hristo Iliev CLA 2010-08-16 06:21:39 EDT
Created attachment 176663 [details]
Pach produced with GIT format-patch
Comment 2 Steve Powell CLA 2010-08-17 05:23:56 EDT
Hristo,
We need your intellectual property assertions posted here: see http://wiki.eclipse.org/Virgo/Community#Contributing for what you need to assert.

As the contribution is large enough, I need to raise a CQ for it (before it can go in the code base).
Comment 3 Steve Powell CLA 2010-08-17 05:28:48 EDT
PS: Please confirm you want hristo.iliev@sap.com as the author's email on the contribution.
Comment 4 Hristo Iliev CLA 2010-08-18 01:51:12 EDT
I confirm that I wrote 100% of the patch and I have the right to contribute it
to Eclipse. I introduced the appropriate License header to the new classes.

I want hristo.iliev@sap.com as the author's email on the contribution.
Comment 5 Steve Powell CLA 2010-09-17 11:51:53 EDT
Comment on attachment 176663 [details]
Pach produced with GIT format-patch

Patch applied in GIT commit:

SHA:	61738ad048b124afc067295227b292ccd9c7de9d
Author:	Hristo Iliev <hristo.iliev@sap.com>
Date:	Wed Aug 18 2010 17:28:04 GMT+0100 (BST)
Committer:	Steve Powell <spowell@vmware.com>
Commit Date:	Fri Sep 17 2010 16:09:56 GMT+0100 (BST)
Subject:	Bug 322774 Add ClassLoading commands to equinox shell.
Comment 6 Steve Powell CLA 2010-09-17 12:08:32 EDT
This patch introduces some more tests, but also introduces classes which are entirely untested in the junit tests. We would like to improve this situation.  See Bug 325617.
Comment 7 Steve Powell CLA 2010-09-17 12:34:15 EDT
Thanks for the prompt.  There are a large number of files.  Here is the current package list in least to greatest coverage order: 

org.eclipse.virgo.kernel.agent.dm	 1	 1.62	 0%	
org.eclipse.virgo.kernel.artifact.fs	 4	 2	 0%	
org.eclipse.virgo.kernel.artifact.library.internal	 1	 1.38	 0%	
org.eclipse.virgo.kernel.deployer.core.event	 16	 1.19	 0%	
org.eclipse.virgo.kernel.deployer.model	 4	 1	 0%	
org.eclipse.virgo.kernel.deployer.model.internal	 1	 1.47	 0%	
org.eclipse.virgo.kernel.dmfragment.internal	 11	 1.54	 0%	
org.eclipse.virgo.kernel.install.pipeline.stage.resolve.internal	 4	 1.9	 0%	
org.eclipse.virgo.kernel.install.pipeline.stage.visit.internal	 1	 1.25	 0%	
org.eclipse.virgo.kernel.management	 2	 1.5	 0%	
org.eclipse.virgo.kernel.management.internal	 1	 1	 0%	
org.eclipse.virgo.kernel.management.internal.system	 12	 1.12	 0%	
org.eclipse.virgo.kernel.model.management	 6	 1	 0%	
org.eclipse.virgo.kernel.module	 12	 1	 0%	
org.eclipse.virgo.kernel.module.internal	 1	 1.67	 0%	
org.eclipse.virgo.kernel.osgi.framework	 18	 1.3	 0%	
org.eclipse.virgo.kernel.osgi.framework.support	 2	 1.14	 0%	
org.eclipse.virgo.kernel.osgi.region.eventlog	 1	 1	 0%	
org.eclipse.virgo.kernel.osgicommand	 1	 2.8	 0%	
org.eclipse.virgo.kernel.osgicommand.internal	 1	 1.43	 0%	
org.eclipse.virgo.kernel.osgicommand.internal.commands.classloading	 1	 3	 0%	
org.eclipse.virgo.kernel.services.concurrent.diagnostics	 1	 1	 0%	
org.eclipse.virgo.kernel.shim.serviceability.internal	 1	 1	 0%	
org.eclipse.virgo.kernel.stubs	 4	 1.09	 0%	
org.eclipse.virgo.kernel.shim.scope.internal	 1	 1.68	 0.8%	
org.eclipse.virgo.kernel.install.artifact.internal.scoping	 3	 2.11	 7%	
org.eclipse.virgo.kernel.install.environment.internal	 3	 1.13	 15.7%	
org.eclipse.virgo.kernel.shell.internal	 20	 2.04	 20.3%	
org.eclipse.virgo.kernel.shell.internal.commands	 11	 1.86	 22.1%	
org.eclipse.virgo.kernel.install.artifact.internal.bundle	 9	 1.94	 27.4%	
org.eclipse.virgo.kernel.services.concurrent.management	 3	 1.91	 28.1%	
org.eclipse.virgo.kernel.deployer.management	 2	 1.22	 30%	
org.eclipse.virgo.kernel.deployer.core.internal	 17	 1.66	 30.2%	
org.eclipse.virgo.kernel.artifact.fs.internal	 3	 1.79	 32.6%	
org.eclipse.virgo.kernel.shell.internal.formatting	 8	 2.21	 34.1%	
org.eclipse.virgo.kernel.shell.internal.completers	 10	 2.34	 35.1%	
org.eclipse.virgo.kernel.shell.internal.converters	 4	 2	 35.5%	
org.eclipse.virgo.kernel.osgi.common	 1	 2.25	 36.5%	
org.eclipse.virgo.kernel.deployer.core	 9	 1.53	 42.1%	
org.eclipse.virgo.kernel.install.artifact.internal	 31	 1.76	 42.4%	
org.eclipse.virgo.kernel.deployer.app.spring	 3	 1.73	 47.1%	
org.eclipse.virgo.kernel.userregion.internal	 7	 1.68	 48.1%	
org.eclipse.virgo.kernel.shell.state.internal	 5	 1.7	 48.6%	
org.eclipse.virgo.kernel.shell.internal.parsing	 2	 2.25	 55.1%	
org.eclipse.virgo.kernel.model.management.internal	 6	 1.35	 55.9%	
org.eclipse.virgo.kernel.userregion.internal.quasi	 14	 2.14	 56.6%	
org.eclipse.virgo.kernel.deployer.core.internal.recovery	 3	 1.83	 59.3%	
org.eclipse.virgo.kernel.services.concurrent.monitor	 2	 2.27	 59.4%	
org.eclipse.virgo.kernel.install.artifact	 12	 1.27	 65.1%	
org.eclipse.virgo.kernel.agent.dm.internal	 4	 1.69	 66.7%	
org.eclipse.virgo.kernel.core	 8	 1.3	 66.7%	
org.eclipse.virgo.kernel.install.pipeline.stage	 3	 2	 66.7%	
org.eclipse.virgo.kernel.userregion.internal.equinox	 15	 1.83	 67.2%	
org.eclipse.virgo.kernel.artifact.plan.internal	 2	 1.2	 68.4%	
org.eclipse.virgo.kernel.authentication	 5	 2.18	 69.2%	
org.eclipse.virgo.kernel.deployer.core.internal.uri	 3	 2.25	 71.2%	
org.eclipse.virgo.kernel.services.repository.internal	 2	 1.29	 72.9%	
org.eclipse.virgo.kernel.osgi.region	 4	 1.63	 73.6%	
org.eclipse.virgo.kernel.shell.model.helper	 6	 2.48	 73.6%	
org.eclipse.virgo.kernel.deployer.hot	 4	 2	 74%	
org.eclipse.virgo.kernel.osgicommand.helper	 1	 3.4	 75.3%	
org.eclipse.virgo.kernel.userregion.internal.importexpansion	 12	 2.16	 76.4%	
org.eclipse.virgo.kernel.shell.internal.help	 2	 3.14	 77.4%	
org.eclipse.virgo.kernel.artifact.bundle	 1	 2.88	 78.3%	
org.eclipse.virgo.kernel.model.internal.deployer	 6	 1.79	 80.5%	
org.eclipse.virgo.kernel.model.internal.bundle	 4	 2	 80.9%	
org.eclipse.virgo.kernel.core.internal	 9	 1.97	 81%	
org.eclipse.virgo.kernel.install.pipeline.internal	 3	 1.88	 82.5%	
org.eclipse.virgo.kernel.artifact.library	 2	 1.83	 82.6%	
org.eclipse.virgo.kernel.config.internal	 10	 1.65	 83.2%	
org.eclipse.virgo.kernel.deployer	 4	 1	 83.3%	
org.eclipse.virgo.kernel.shell.internal.util	 1	 1.33	 83.3%	
org.eclipse.virgo.kernel.services.concurrent	 10	 1.08	 85.7%	
org.eclipse.virgo.kernel.install.pipeline.stage.transform.internal	 7	 1.37	 86.9%	
org.eclipse.virgo.kernel.model.internal	 4	 2.07	 86.9%	
org.eclipse.virgo.kernel.serviceability.dump	 1	 1.67	 88.2%	
org.eclipse.virgo.kernel.core.internal.blueprint	 3	 2.06	 90%	
org.eclipse.virgo.kernel.artifact.internal	 1	 4	 91.3%	
org.eclipse.virgo.kernel.serviceability	 4	 1.94	 92.9%	
org.eclipse.virgo.kernel.shutdown	 3	 1.94	 93.2%	
org.eclipse.virgo.kernel.services.work	 3	 1	 93.3%	
org.eclipse.virgo.kernel.config.internal.ovf	 3	 2.18	 93.8%	
org.eclipse.virgo.kernel.model.internal.configurationadmin	 3	 1.43	 94.7%	
org.eclipse.virgo.kernel.config.internal.commandline	 1	 3	 96.7%	
org.eclipse.virgo.kernel.artifact	 1	 1.17	 100%	
org.eclipse.virgo.kernel.artifact.par	 1	 2.33	 100%	
org.eclipse.virgo.kernel.artifact.plan	 3	 1.33	 100%	
org.eclipse.virgo.kernel.artifact.properties	 1	 1.67	 100%	
org.eclipse.virgo.kernel.diagnostics	 1	 1	 100%	
org.eclipse.virgo.kernel.services.internal	 1	 1	 100%

If you have a licensed copy of clover you should be able to run this and get a much more detailed report.
Comment 8 Steve Powell CLA 2010-10-22 07:11:48 EDT
Done.