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

TTY: jdb should also support the -cp option

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P4
    • Resolution: Won't Fix
    • Affects Version/s: 5.0
    • Fix Version/s: 10
    • Component/s: core-svc
    • Labels:
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      The option called -cp is an abbreviation for -classpath.
      Before J2SE 5.0 only the java command has support for -cp.
      Since J2SE 5.0 also the javac command has support for -cp.
      For better consistency, the alternate option -cp
      should also be added in an upcoming jdb release.

      % jdb -version
      This is jdb version 1.5 (J2SE version 1.5.0)

      % javac -classpath . Dummy.java
      % java -classpath . Dummy
      % jdb -classpath . Dummy
      Initializing jdb ...
      > quit
       
      % javac -cp . Dummy.java
      % java -cp . Dummy
      % jdb -cp . Dummy
      invalid option: -cp
      [--snip--]


      ###@###.### 2005-1-21 12:31:11 GMT

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                jloefflm Johann Löfflmann (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: