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

Incorrectly chained jar index files cause stack overflow on resource lookup

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.3.0
    • tools
    • None
    • jar
    • beta
    • sparc
    • solaris_7
    • Verified

      It is possible to chain jar files using their index files such that a lookup of
      a resource starting at the root jar would cause the program to hang
      indefinitely. The problem occurs because the lookup of jar files fails to skip
      jar files that have already been searched during the current lookup. This bug
      occurs for jdk1.3 on solaris and win32 (NT)

      The attached code illustrates the problem. To run the code,
      1. Set the classpath to .:a.jar:b.jar:c.jar
      2. java c.A

            busersunw Btplusnull User (Inactive)
            nsanjeevsunw Naveen Sanjeeva (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: