Reported classpath should include classpath from parent classloaders, but not from the system classloader

Description

Since a classloader delegates to its parent if it fails to provide a class, the classpath reported by java.classpath should include the classpath of parent classloaders.

At present the reported classpath contains both system and baseloader classpaths, which I believe is incorrect, since the system classloader is not necessarily a parent of the baseloader.

Environment

None

Assignee

Stuart Sierra

Reporter

Hugo Duncan

Labels

None

Approval

None

Patch

Code

Priority

Major
Configure