Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4110106

Jar manifest file attribute Class-Path search order inconsistency

XMLWordPrintable


      arthur.frechette@East 1998-02-06

      There appears to be a problem in the way the search path is searched when
      having multiple Class-Path entries. For examples I had in my manifest file:

      Class-Path: ext/v1/MyExtensions.jar
      Class-Path: ext/v2/MyExtensions.jar
       
      I expected it to search for classes first in this order:
       
        ext/v1/MyExtensions.jar ext/v2/MyExtensions.jar
       
      Since ext/v1/MyExtensions.jar was defined first.
       
      It should have resolved my classes with first version of jar (v1) but
      instead it resolved my classes with the second version of jar (v2).
       
      When I set the manifest file as follows I get what was expected with right
      search order:
       
      either:
       
      Class-Path: ext/v1/MyExtensions.jar ext/v2/MyExtensions.jar
       
      or this:
       
      Class-Path: ext/v2/MyExtensions.jar
      Class-Path: ext/v1/MyExtensions.jar
       
      So it looks like the stacking order for search paths is not set correctly.

            dconnellsunw David Connelly (Inactive)
            afrechet Art Frechette (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: