Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 362589

Summary: Add DefaultClassLoader.toString
Product: [Eclipse Project] Equinox Reporter: Brett Kail <bkail>
Component: FrameworkAssignee: Thomas Watson <tjwatson>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: l.kirchev, remy.suen, tjwatson
Version: unspecified   
Target Milestone: Juno M4   
Hardware: PC   
OS: All   
Whiteboard:

Description Brett Kail CLA 2011-11-01 14:58:35 EDT
Build Identifier: 

For debugging, it would be useful if DefaultClassLoader.toString included the bundle ID, symbolic name, and version (and anything else that might be useful to uniquely identify the bundle).

Reproducible: Always
Comment 1 Thomas Watson CLA 2011-11-01 17:00:43 EDT
Seems reasonable.
Comment 2 Thomas Watson CLA 2011-11-04 15:55:50 EDT
Resolved in commit: 

http://git.eclipse.org/c/equinox/rt.equinox.framework.git/commit/?id=ade0fa29ef31ff63a7d0f0acaf08c5dab63a17a3

I decided to still call super.toString and append the following:
  [bsn:version(id=x)]

For example:

org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader@bf5555[org.eclipse.equinox.simpleconfigurator:1.0.300.v20110815-1744(id=543)]
Comment 3 Brett Kail CLA 2011-11-04 16:11:27 EDT
Looks good to me.  Thanks, Tom.
Comment 4 Thomas Watson CLA 2013-02-11 10:26:29 EST
*** Bug 381059 has been marked as a duplicate of this bug. ***