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

javap prints "null" for the method name in code compiled with -target 1.2

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 1.4.0, 1.4.1
    • Fix Version/s: 1.4.2
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      mantis
    • CPU:
      generic, x86
    • OS:
      linux, solaris_7

      Description

      frog$ cat -n T.java
           1 class B {
           2 void f() {}
           3 }
           4
           5 class T extends B {
           6 void g() {
           7 f();
           8 }
           9 }
      frog$ /java/jdk/1.4/re/promoted/latest/binaries/solsparc/bin/javac T.java
      frog$ /java/jdk/1.4/re/promoted/latest/binaries/solsparc/bin/javap -c T
      Compiled from T.java
      class T extends B {
          T();
          void g();
      }

      Method T()
         0 aload_0
         1 invokespecial #1 <Method B()>
         4 return

      Method void g()
         0 aload_0
         1 invokevirtual #2 <Method null>
         4 return
      frog$

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              duke J. Duke (Inactive)
              Reporter:
              gafter Neal Gafter
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: