Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 362589 - Add DefaultClassLoader.toString
Summary: Add DefaultClassLoader.toString
Status: RESOLVED FIXED
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: Framework (show other bugs)
Version: unspecified   Edit
Hardware: PC All
: P3 enhancement (vote)
Target Milestone: Juno M4   Edit
Assignee: Thomas Watson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 381059 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-11-01 14:58 EDT by Brett Kail CLA
Modified: 2013-02-11 10:26 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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. ***