Misuse of super permitted for inner classes

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P5
    • None
    • Affects Version/s: 1.2.0
    • Component/s: tools
    • None
    • generic
    • solaris_2.5.1

      Specifying the enclosing instance in the explicit ctor invocation should
      only
      be allowed for inner class constructors. The inner class spec and javac
      both have this problem.
       

      class bug38 {
          static class S {
           S( bug38 p ) {
               p.super(); // why no diagnostic?
           }
          };
      }

            Assignee:
            William Maddox (Inactive)
            Reporter:
            David Stoutamire (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: