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

incorrect "reference ... is ambiguous" when overriding method in several classes

    XMLWordPrintable

Details

    • sparc
    • solaris_2.6

    Description

      having the following classes hierarchy:

        RR <- HH

        S <- HS <- AS <- AAS

      and following methods:

        S.service(RR) { }

        HS.service(RR) { this.service(HH) }

        HS.service(HH) { }

        AS.service(RR) { super.service(RR) }

        AAS.service(HH) { super.service(HH) }

      gives a "Reference to service is ambiguous. It is defined in void service(RR) and void service(HH)." compile error.

      it shouldn't.

      using the fastjavac compiler from javaworkshop 3.0 compiles fine.

      after compiled, can be run by any VM.

      Attachments

        Issue Links

          Activity

            People

              iris Iris Clark
              duke J. Duke
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: