JDK-8033711 : An exception is thrown if using the "-classpath" option with no arguments
  • Type: Bug
  • Component: tools
  • Sub-Component: javap
  • Affected Version: 8
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2014-02-05
  • Updated: 2014-07-29
  • Resolved: 2014-02-06
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 8 JDK 9
8u20Fixed 9 b04Fixed
Description
Exception in thread "main" java.lang.IllegalArgumentException: -classpath
        at com.sun.tools.javac.util.BaseFileManager.handleOption(BaseFileManager
.java:163)
        at com.sun.tools.javap.JavapTask.handleOption(JavapTask.java:564)
        at com.sun.tools.javap.JavapTask.handleOptions(JavapTask.java:512)
        at com.sun.tools.javap.JavapTask.handleOptions(JavapTask.java:489)
        at com.sun.tools.javap.JavapTask.run(JavapTask.java:444)
        at com.sun.tools.javap.Main.main(Main.java:46)
Comments
Can recreate the bug as follows: $ /opt/jdk/1.9.0/bin/javap -classpath Exception in thread "main" java.lang.IllegalArgumentException: -classpath at com.sun.tools.javac.util.BaseFileManager.handleOption(BaseFileManager.java:163) at com.sun.tools.javap.JavapTask.handleOption(JavapTask.java:564) at com.sun.tools.javap.JavapTask.handleOptions(JavapTask.java:512) at com.sun.tools.javap.JavapTask.handleOptions(JavapTask.java:489) at com.sun.tools.javap.JavapTask.run(JavapTask.java:444) at com.sun.tools.javap.Main.main(Main.java:46)
05-02-2014

What was the (complete) command line you used?
05-02-2014