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

jar tf only lists some of the classes within a jar file in some cases

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • None
    • 1.4.0
    • tools
    • jar
    • x86
    • windows_2000



      Name: jk109818 Date: 01/04/2002


      FULL PRODUCT VERSION :
      Problem happens on all of these:

      java version "1.3.1"
      Java(TM) 2 Runtime Environment, Standard Edition (build
      1.3.1-b24)
      Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode)

      java version "1.3.0_02"
      Java(TM) 2 Runtime Environment, Standard Edition (build
      1.3.0_02)
      Java HotSpot(TM) Client VM (build 1.3.0_02, mixed mode)

      java version "1.3.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build
      1.3.0)
      Java HotSpot(TM) Client VM (build 1.3.0, mixed mode)


      FULL OPERATING SYSTEM VERSION :
      Windows 2000

      ADDITIONAL OPERATING SYSTEMS :
      Problem also occurs on Solaris 2.6


      EXTRA RELEVANT SYSTEM CONFIGURATION :
      Nothing special required

      A DESCRIPTION OF THE PROBLEM :
      using jar tf on some jar files only shows a part of the
      contents

      other contents are recognised as classes when running
      programs but do not appear in the output of jar tf

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1. Download http://www.aaa.net.au/campbell/oscore.jar
      2. jar tf oscore.jar
      3. notice that there are no com.opensymphony classes
      listed in the output produced by jar tf
      4. use another zip tool to view the contents of the jar
      file
      5. notice that there are com.opensymphony classes listed
      in the output
      6. recognise that jar is not listing some of the contents

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      I expect all the of the classes in the jar to be shown by
      jar tf.

      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      I have provided a jar file that can be used to reproduce
      the problem, as mentioned above, at
      http://www.aaa.net.au/campbell/oscore.jar
      ---------- END SOURCE ----------

      CUSTOMER WORKAROUND :
      Using commandline "zip" tool or winzip allows viewing of
      contents.
      (Review ID: 137484)
      ======================================================================

            sherman Xueming Shen
            jkimsunw Jeffrey Kim (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: