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

compiler generates unverifiable code for implicit reference to uninit'd this

XMLWordPrintable

    • 1.4.2
    • generic
    • solaris_8
    • Verified

      The following code compiles to unverifiable byte code. The problem is
      the implicit qualifier in the implicit superclass constructor invocation
      in the implicit constructor for Three.

      class One {
          class Two extends One {
              { System.out.println(One.this); }
          }
          class Three extends Two {
              { new Two(); }
          }
          public static void main(String[] args) {
              One o = new One();
              System.out.println(o + " " + o.new Three());
          }
      }

            ahe Peter Ahe
            gafter Neal Gafter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: