JDK-6474890 : javap does not open .zip files in -classpath
  • Type: Bug
  • Component: tools
  • Sub-Component: javap
  • Affected Version: 6
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2006-09-25
  • Updated: 2011-05-17
  • Resolved: 2011-05-17
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7 b30Fixed
Description
FULL PRODUCT VERSION :
java version "1.6.0-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-beta-b59g)
Java HotSpot(TM) Client VM (build 1.6.0-beta-b59g, mixed mode, sharing)


ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP [Version 5.1.2600]

A DESCRIPTION OF THE PROBLEM :
I'm using a signed jar file named xxx.zip
When calling

  javap -classpath xxx.zip MyClass

I get a message

ERROR: could not find MyClass

However after renaming the file to xxx.jar and calling

  javap -classpath xxx.jar MyClass

It works fine.
It is reproducible with large signed jar files (>2MB) but seems to work fine with small, unsigned files

REGRESSION.  Last worked in version mustang


REPRODUCIBILITY :
This bug can be reproduced always.

Comments
EVALUATION Will be fixed by new javap, reusing javac file manager.
01-11-2007

EVALUATION This bug was introduced in jdk 1.4.2.
28-09-2006