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

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 7
    • Affects Version/s: 1.4.2
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: