java.classpath

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

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Patch:
    Code

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.

  1. recursive-classpath.diff
    15/Sep/11 11:18 AM
    3 kB
    Hugo Duncan
  2. recursive-classpath.diff
    14/Sep/11 11:27 AM
    3 kB
    Hugo Duncan
  3. recursive-classpath.diff
    13/Sep/11 8:35 PM
    2 kB
    Hugo Duncan

Activity

Hugo Duncan made changes -
Field Original Value New Value
Attachment recursive-classpath.diff [ 10356 ]
Hugo Duncan made changes -
Attachment recursive-classpath.diff [ 10363 ]
Hugo Duncan made changes -
Comment [ Patch with tests for non-empty sequence of File objects ]
Hugo Duncan made changes -
Attachment recursive-classpath.diff [ 10363 ]
Hugo Duncan made changes -
Attachment recursive-classpath.diff [ 10364 ]
Stuart Sierra made changes -
Status Open [ 1 ] Resolved [ 5 ]
Resolution Completed [ 1 ]
Stuart Sierra made changes -
Status Resolved [ 5 ] Closed [ 6 ]

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: