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

comiler should generate error but doesn't

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Won't Fix
    • Affects Version/s: 1.2.0
    • Fix Version/s: None
    • Component/s: tools
    • Subcomponent:
    • CPU:
      x86
    • OS:
      windows_nt

      Description



      Name: clC74495 Date: 05/13/99


      --- expected:
      compile error at line 7

      --- actual:
        compile: OK
        execute:
      Outer3@77263604
      Outer3.this = null
      Outer3.this = Outer3@77263604

      --- X.java
      class Outer3 {
      class Nested3 {
      Nested3() {
      super();
      }
      Nested3(String o) {
      o.super(); // should be error
      }

      void g() {
      System.out.println("Outer3.this = " + Outer3.this);
      }
      }

      void f() {
      System.out.println(this);
      new Nested3("hello").g();
      new Nested3().g();
      }

      public static void main(String[] args) {
      new Outer3().f();
      }
      }
      (Review ID: 63137)
      ======================================================================

        Attachments

          Activity

            People

            Assignee:
            wmaddoxsunw William Maddox (Inactive)
            Reporter:
            clucasius Carlos Lucasius (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: