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

compiler allows self-recursive constructors

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      1.0alpha
    • CPU:
      sparc
    • OS:
      solaris_2.4
    • Verification:
      Not verified

      Description

         The compiler allows a constructor to call it self.
         For example:
      class bug130 {

          bug130() {
      this();
          }
      }

         The compiler should produce a warning in that case.

        Attachments

          Activity

            People

            Assignee:
            ahoffsunw Arthur Hoff (Inactive)
            Reporter:
            duke J. Duke (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: