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

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.2
    • 1.4.0, 1.4.1
    • tools
    • mantis
    • generic, x86
    • linux, solaris_7

      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$

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: