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

Javap Rewrite : Warn javap usage on package classes with simple name.

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 7
    • 1.4.2
    • tools
    • b70
    • sparc
    • solaris_9
    • Verified

      For a class contained in a package, eg. "pack.e",

      invoking javap with simple name used to result in error with old javap.
      jtools-sqe:/home/vr128054/javap-test/pack 79 % javap e
      Error: Binary file 'e' contains pack.e

      But presently, the javap accepts and dissembles class 'e' when doing,

      jtools-sqe:/home/vr128054/javap-test/pack 141 % javap e
      Compiled from "E.java"
      class pack.e extends java.lang.Object{
      pack.e();
      }

      This behaviour might be helpful, but it would clarify better if a warning is issued.

            jjg Jonathan Gibbons
            rvijayansunw Ra Vijayan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: