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

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

    XMLWordPrintable

Details

    • 1.4.2
    • generic
    • solaris_8
    • Verified

    Description

      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());
          }
      }

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: