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

test test/tools/javac/lambda/T8024947/PotentiallyAmbiguousWarningTest.java has an extra @compile attribute that should be removed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 8
    • tools
    • b152
    • Verified

        The test's jtreg attributes are:

        /*
         * @test
         * @bug 8024947
         * @summary javac should issue the potentially ambiguous overload warning only
         * where the problem appears
         * @compile/fail/ref=PotentiallyAmbiguousWarningTest.out -XDrawDiagnostics -Werror -Xlint:overloads PotentiallyAmbiguousWarningTest.java
         * @compile PotentiallyAmbiguousWarningTest.java
         */

        The second @compile shouldn't be there.

              vromero Vicente Arturo Romero Zaldivar
              vromero Vicente Arturo Romero Zaldivar
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: